Tweak item pane padding

The item pane scrollbox was actually padded on the outside. This removes
that padding, which slightly increases the viewable content in the pane.
This commit is contained in:
Dan Stillman 2016-04-05 15:02:06 -04:00
parent f70c2bfa0a
commit 1e8b74d9b9
3 changed files with 14 additions and 7 deletions

View File

@ -87,12 +87,15 @@ var ZoteroItemPane = new function() {
_lastItem = item; _lastItem = item;
// Hide for feed items var viewBox = document.getElementById('zotero-view-item');
document.getElementById('zotero-editpane-tabs').setAttribute('hidden', item.isFeedItem); viewBox.classList.remove('no-tabs');
document.getElementById('zotero-view-item').classList.add('no-tabs');
if (index == 0) { if (index == 0) {
document.getElementById('zotero-editpane-tabs').setAttribute('hidden', item.isFeedItem);
if (item.isFeedItem) { if (item.isFeedItem) {
viewBox.classList.add('no-tabs');
let lastTranslationTarget = Zotero.Prefs.get('feeds.lastTranslationTarget'); let lastTranslationTarget = Zotero.Prefs.get('feeds.lastTranslationTarget');
if (lastTranslationTarget) { if (lastTranslationTarget) {
let id = parseInt(lastTranslationTarget.substr(1)); let id = parseInt(lastTranslationTarget.substr(1));

View File

@ -75,7 +75,7 @@
</tabpanel> </tabpanel>
<tabpanel flex="1" orient="vertical"> <tabpanel flex="1" orient="vertical">
<vbox flex="1" class="zotero-box"> <vbox flex="1" id="zotero-editpane-notes" class="zotero-box">
<hbox align="center"> <hbox align="center">
<label id="zotero-editpane-notes-label"/> <label id="zotero-editpane-notes-label"/>
<button id="zotero-editpane-notes-add" label="&zotero.item.add;" oncommand="ZoteroItemPane.addNote(event.shiftKey);"/> <button id="zotero-editpane-notes-add" label="&zotero.item.add;" oncommand="ZoteroItemPane.addNote(event.shiftKey);"/>

View File

@ -22,12 +22,12 @@
#zotero-view-item #zotero-view-item
{ {
padding: 1.5em .25em .25em; padding: 0;
} }
#zotero-view-item.no-tabs #zotero-view-item.no-tabs
{ {
padding: .25em .25em .25em; margin-top: 0;
} }
#zotero-view-item > tabpanel > * #zotero-view-item > tabpanel > *
@ -35,13 +35,17 @@
overflow: auto; overflow: auto;
} }
#zotero-view-item:not([selectedIndex="0"]) > tabpanel > * {
padding-top: .25em;
}
#zotero-view-item > vbox #zotero-view-item > vbox
{ {
overflow: auto; overflow: auto;
margin-left: 5px; margin-left: 5px;
} }
/* Restore/Delete buttons in trash view */ /* Buttons in trash and feed views */
.zotero-item-pane-top-buttons { .zotero-item-pane-top-buttons {
-moz-appearance: toolbar; -moz-appearance: toolbar;
-moz-box-pack: center; -moz-box-pack: center;