fx-compat: Fix adding/editing feeds (#2632)

This commit is contained in:
Abe Jellinek 2023-02-26 05:34:21 -05:00 committed by GitHub
parent 53ace4876e
commit 0627ee0cb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 35 deletions

View file

@ -1,7 +0,0 @@
.zotero-advanced-options > .zotero-advanced-options-label > dropmarker {
transform: rotate(270deg) translateX(4px);
}
.zotero-advanced-options[state="open"] > .zotero-advanced-options-label > dropmarker {
transform: translateX(4px);
}

View file

@ -17,33 +17,22 @@
<script src="chrome://global/content/customElements.js"/>
<script src="feedSettings.js"/>
<grid>
<columns>
<column/>
<column flex="1"/>
</columns>
<rows>
<row>
<hbox align="center">
<label value="&zotero.feedSettings.url.label;" control="feed-url"/>
</hbox>
<textbox id="feed-url" flex="1" size="2"
oninput="Zotero_Feed_Settings.invalidateURL();Zotero_Feed_Settings.validateURL()"
focused="true" newlines="stripsurroundingwhitespace"
style="width: 30em; max-width: 30em"/>
</row>
<row>
<hbox align="center">
<label value="&zotero.feedSettings.title.label;" control="feed-url"/>
</hbox>
<textbox id="feed-title" flex="1" newlines="replacewithspaces"/>
</row>
</rows>
</grid>
<html:div class="form-grid">
<hbox align="center">
<label value="&zotero.feedSettings.url.label;" control="feed-url"/>
</hbox>
<html:input id="feed-url"
oninput="Zotero_Feed_Settings.invalidateURL();Zotero_Feed_Settings.validateURL()"
autofocus="true" style="width: 30em; max-width: 30em; -moz-box-flex: 1;"/>
<hbox align="center">
<label value="&zotero.feedSettings.title.label;" control="feed-title"/>
</hbox>
<html:input id="feed-title" style="-moz-box-flex: 1;"/>
</html:div>
<vbox id="advanced-options" class="zotero-advanced-options">
<hbox onclick="Zotero_Feed_Settings.toggleAdvancedOptions()" class="zotero-advanced-options-label">
<dropmarker/>
<toolbarbutton class="toolbarbutton-menu-dropmarker"/>
<hbox align="center">
<label value="&zotero.general.advancedOptions.label;"/>
</hbox>

View file

@ -206,12 +206,11 @@ zoterosearch .menulist-icon {
max-width: 29.5em;
}
.zotero-advanced-options>.zotero-advanced-options-label>dropmarker {
list-style-image: url("chrome://browser/skin/toolbarbutton-dropdown-arrow.png");
.zotero-advanced-options > .zotero-advanced-options-label > .toolbarbutton-menu-dropmarker {
transform: rotate(270deg);
}
.zotero-advanced-options[state=open]>.zotero-advanced-options-label>dropmarker {
.zotero-advanced-options[state=open] > .zotero-advanced-options-label > .toolbarbutton-menu-dropmarker {
transform: none;
}
@ -246,6 +245,11 @@ zoterosearch .menulist-icon {
max-width: 16px;
}
.form-grid {
display: grid;
grid-template-columns: max-content 1fr;
}
/* BEGIN 2X BLOCK -- DO NOT EDIT MANUALLY -- USE 2XIZE */
@media (min-resolution: 1.25dppx) {