Improve layout of the buttons in the locate manager (#5139)

This commit is contained in:
Tom Najdek 2025-03-20 22:22:07 +01:00 committed by Dan Stillman
parent ebecf0f4cc
commit e700f5ca98
2 changed files with 7 additions and 6 deletions

View file

@ -59,13 +59,13 @@
<separator class="thin"/>
<hbox id="button-bar" align="center">
<hbox pack="start" flex="1">
<button label="Toggle" onclick="toggleLocateEngines()" flex="1"/>
<button id="locateManager-restoreDefaults" label="&zotero.preferences.locate.restoreDefaults;" oncommand="restoreDefaultLocateEngines()" flex="1"/>
<hbox id="button-bar">
<hbox pack="start">
<button label="Toggle" onclick="toggleLocateEngines()" />
<button id="locateManager-restoreDefaults" label="&zotero.preferences.locate.restoreDefaults;" oncommand="restoreDefaultLocateEngines()" />
</hbox>
<hbox pack="end" flex="2">
<button disabled="true" id="locateManager-delete" label="-" oncommand="deleteLocateEngine()" flex="0.5"/>
<hbox pack="end">
<button disabled="true" id="locateManager-delete" label="-" oncommand="deleteLocateEngine()" />
</hbox>
</hbox>

View file

@ -3,6 +3,7 @@
@include contain-richlistbox;
#button-bar, #button-bar > hbox {
justify-content: flex-end;
display: flex;
gap: 6px;
}