fix stacking issue

This commit is contained in:
Maroxy 2021-11-28 19:28:17 +01:00
parent e5ac400bd4
commit f82abf9d34
No known key found for this signature in database
GPG key ID: F4B27EADB21E3021
2 changed files with 13 additions and 8 deletions

View file

@ -112,12 +112,6 @@
</ul> </ul>
</div> </div>
<div id="prefixloc">
<span id="setprefix">empty</span>
<button class="button" id="prefixdir" i18id="ChangePrefix">Change Prefix</button>
<button class="button" id="defprefix" i18id="DefPrefix">Reset</button>
</div>
<div class="selected-item"> <div class="selected-item">
<span>System</span> <span>System</span>
@ -136,6 +130,17 @@
</div> </div>
</div> </div>
<br>
<div id="prefixloc">
<span>Prefix: </span>
<span id="currentprefix">empty</span>
<button class="button" id="prefixdir" i18id="ChangePrefix">Change Prefix</button>&nbsp;&nbsp;&nbsp;
<button class="button" id="defprefix" i18id="DefPrefix">Reset</button>
</div>
<br><br> <br><br>
<div id="general-action-buttons"> <div id="general-action-buttons">

View file

@ -58,10 +58,10 @@ $(() => {
* Prefix * Prefix
*/ */
$('#prefixloc span').text(LauncherLib.getConfig('prefix')); $('#prefixloc #currentprefix').text(LauncherLib.getConfig('prefix'));
ipcRenderer.on('prefix-changed', () => { ipcRenderer.on('prefix-changed', () => {
$('#prefixloc span').text(LauncherLib.getConfig('prefix')); $('#prefixloc #currentprefix').text(LauncherLib.getConfig('prefix'));
}) })
$('#prefixloc #prefixdir').on('click', () => { $('#prefixloc #prefixdir').on('click', () => {