Fix display of item pane after pinned-note changes

Stacked mode is still broken
This commit is contained in:
Dan Stillman 2020-09-28 00:45:03 -04:00
parent 2e9e655479
commit 787641dc17
4 changed files with 10 additions and 10 deletions

View file

@ -127,7 +127,7 @@ input {
-moz-appearance: none;
}
#zotero-view-tabbox > tabs {
#zotero-editpane-tabs {
-moz-appearance: none;
background: -moz-linear-gradient(top, #ededed, #cccccc);
border-style: solid;
@ -136,15 +136,15 @@ input {
padding: 2px 0 2px 0;
}
#zotero-view-tabbox > tabs > tab > hbox {
#zotero-editpane-tabs > tab > hbox {
padding: 0;
}
#zotero-view-tabbox > tabs > tab > hbox > .tab-icon {
#zotero-editpane-tabs > tab > hbox > .tab-icon {
display: none;
}
#zotero-pane #zotero-view-tabbox > tabs > tab {
#zotero-editpane-tabs > tab {
-moz-box-orient: vertical;
-moz-box-align: center;
-moz-appearance: toolbarbutton;
@ -153,7 +153,7 @@ input {
padding: 3px 1px 3px 1px;
}
#zotero-pane #zotero-view-tabbox > tabs > tab > hbox .tab-text {
#zotero-editpane-tabs > tab > hbox .tab-text {
font-size: 11px;
font-weight: bold;
margin: 2px 7px 2px 9px !important;
@ -161,11 +161,11 @@ input {
}
/* This seems to be necessary to center the tabs. Not sure why. */
#zotero-pane #zotero-view-tabbox > tabs > tab:last-of-type > hbox .tab-text {
#zotero-editpane-tabs > tab:last-of-type > hbox .tab-text {
margin: 2px 9px 2px 9px !important;
}
#zotero-pane #zotero-view-tabbox > tabs > tab[selected=true] > hbox .tab-text {
#zotero-editpane-tabs > tab[selected=true] > hbox .tab-text {
color: #FFF !important;
text-shadow: rgba(0, 0, 0, 0.4) 0 1px;
}

View file

@ -154,7 +154,7 @@ tree {
border-color: var(--theme-border-color);
}
#zotero-view-tabbox > tabs {
#zotero-editpane-tabs {
margin-top: 2px;
}

View file

@ -5216,7 +5216,7 @@ var ZoteroPane = new function()
// Allow item pane to shrink to available height in stacked mode, but don't expand to be too
// wide when there's no persisted width in non-stacked mode
itemPane.setAttribute("flex", stackedLayout ? 1 : 0);
//itemPane.setAttribute("flex", stackedLayout ? 1 : 0);
this.handleTagSelectorResize();
}

View file

@ -580,7 +580,7 @@
<vbox>
<hbox id="zotero-reader-toolbar-extension" height="32" hidden="true"></hbox>
<!-- itemPane.xul -->
<vbox id="zotero-item-pane"/>
<vbox id="zotero-item-pane" flex="1"/>
</vbox>
</hbox>
</vbox>