Preferences: Restore subpane Back button

It was technically still there, just offscreen. The wrapper element
was display: block, and some block layout quirk caused the button to
grow to fill the wrapper, which then put it offscreen when rotated.

This removes the wrapper and replaces it with a margin. Also fixes an
incorrect margin in RTL locales.
This commit is contained in:
Abe Jellinek 2024-04-01 11:57:00 -04:00
parent 751457268b
commit 2a114cef9b
2 changed files with 6 additions and 11 deletions

View file

@ -86,12 +86,10 @@
<richlistbox id="prefs-navigation"></richlistbox>
<html:div id="prefs-inner-container">
<html:div id="prefs-search-container">
<html:div id="prefs-subpane-back-button-container">
<toolbarbutton
id="prefs-subpane-back-button"
aria-label="&zotero.pdfReader.back;"
hidden="true"/>
</html:div>
<toolbarbutton
id="prefs-subpane-back-button"
aria-label="&zotero.pdfReader.back;"
hidden="true"/>
<search-textbox id="prefs-search" placeholder="&zotero.lookup.button.search;" timeout="1"/>
</html:div>
<html:div id="prefs-content">

View file

@ -80,6 +80,7 @@
}
#prefs-search {
margin-inline-start: auto;
width: 16em;
}
@ -127,12 +128,8 @@
width: 24px;
}
#prefs-subpane-back-button-container {
flex: 1;
}
#prefs-subpane-back-button {
margin-left: 20px;
margin-inline-start: 20px;
@include svgicon-menu("chevron", "universal", "20");
rotate: 90deg;
}