Add a second horizontal layout to Zotero for small screens (#1010)
This commit is contained in:
parent
e573ad886f
commit
6bff554976
|
@ -302,20 +302,44 @@
|
||||||
-moz-appearance: none;
|
-moz-appearance: none;
|
||||||
-moz-border-start: none !important;
|
-moz-border-start: none !important;
|
||||||
-moz-border-end: none !important;
|
-moz-border-end: none !important;
|
||||||
|
background-color: #8b8b8b !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#zotero-collections-splitter, #zotero-items-splitter[orient=horizontal]
|
||||||
|
{
|
||||||
max-width: 1px !important;
|
max-width: 1px !important;
|
||||||
min-width: 1px !important;
|
min-width: 1px !important;
|
||||||
width: 1px !important;
|
width: 1px !important;
|
||||||
background-color: #8b8b8b !important;
|
}
|
||||||
|
|
||||||
|
#zotero-items-splitter[orient=vertical]
|
||||||
|
{
|
||||||
|
max-height: 1px !important;
|
||||||
|
min-height: 1px !important;
|
||||||
|
height: 1px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#zotero-collections-splitter[state=collapsed], #zotero-items-splitter[state=collapsed] {
|
#zotero-collections-splitter[state=collapsed], #zotero-items-splitter[state=collapsed] {
|
||||||
border: 0 solid #d6d6d6 !important;
|
border: 0 solid #d6d6d6 !important;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#zotero-collections-splitter[state=collapsed], #zotero-items-splitter[state=collapsed][orient=horizontal]
|
||||||
|
{
|
||||||
|
background-image: url("chrome://zotero/skin/mac/vsplitter.png");
|
||||||
|
background-repeat: repeat-y;
|
||||||
max-width: 8px !important;
|
max-width: 8px !important;
|
||||||
min-width: 8px !important;
|
min-width: 8px !important;
|
||||||
width: 8px !important;
|
width: 8px !important;
|
||||||
background-image: url("chrome://zotero/skin/mac/vsplitter.png");
|
}
|
||||||
background-repeat: repeat-y;
|
|
||||||
padding: 0;
|
#zotero-items-splitter[state=collapsed][orient=vertical]
|
||||||
|
{
|
||||||
|
background-image: url("chrome://zotero/skin/mac/hsplitter.png");
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
max-height: 8px !important;
|
||||||
|
min-height: 8px !important;
|
||||||
|
height: 8px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#zotero-collections-splitter[state=collapsed] {
|
#zotero-collections-splitter[state=collapsed] {
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
<script src="include.js"/>
|
<script src="include.js"/>
|
||||||
<script src="itemPane.js" type="application/javascript;version=1.8"/>
|
<script src="itemPane.js" type="application/javascript;version=1.8"/>
|
||||||
|
|
||||||
<vbox id="zotero-item-pane" zotero-persist="width">
|
<vbox id="zotero-item-pane" zotero-persist="width height" flex="1">
|
||||||
<!-- Trash -->
|
<!-- Trash -->
|
||||||
<hbox id="zotero-item-pane-top-buttons-trash" class="zotero-item-pane-top-buttons" hidden="true">
|
<hbox id="zotero-item-pane-top-buttons-trash" class="zotero-item-pane-top-buttons" hidden="true">
|
||||||
<button id="zotero-item-restore-button" label="&zotero.items.menu.restoreToLibrary;"
|
<button id="zotero-item-restore-button" label="&zotero.items.menu.restoreToLibrary;"
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
|
|
||||||
<preferences id="zotero-prefpane-general-preferences">
|
<preferences id="zotero-prefpane-general-preferences">
|
||||||
<preference id="pref-fontSize" name="extensions.zotero.fontSize" type="string"/>
|
<preference id="pref-fontSize" name="extensions.zotero.fontSize" type="string"/>
|
||||||
|
<preference id="pref-layout" name="extensions.zotero.layout" type="string"/>
|
||||||
<preference id="pref-automaticScraperUpdates" name="extensions.zotero.automaticScraperUpdates" type="bool"/>
|
<preference id="pref-automaticScraperUpdates" name="extensions.zotero.automaticScraperUpdates" type="bool"/>
|
||||||
<preference id="pref-reportTranslationFailure" name="extensions.zotero.reportTranslationFailure" type="bool"/>
|
<preference id="pref-reportTranslationFailure" name="extensions.zotero.reportTranslationFailure" type="bool"/>
|
||||||
<preference id="pref-automaticSnapshots" name="extensions.zotero.automaticSnapshots" type="bool"/>
|
<preference id="pref-automaticSnapshots" name="extensions.zotero.automaticSnapshots" type="bool"/>
|
||||||
|
@ -56,6 +57,16 @@
|
||||||
</columns>
|
</columns>
|
||||||
|
|
||||||
<rows id="zotero-prefpane-general-rows">
|
<rows id="zotero-prefpane-general-rows">
|
||||||
|
<row>
|
||||||
|
<hbox align="center">
|
||||||
|
<label value="&zotero.preferences.layout;" control="layout"/>
|
||||||
|
</hbox>
|
||||||
|
<radiogroup id="layout" orient="horizontal" align="center" preference="pref-layout">
|
||||||
|
<radio id="horizontal" label="&zotero.preferences.layout.standard;" value="standard"/>
|
||||||
|
<radio id="vertical" label="&zotero.preferences.layout.stacked;" value="stacked"/>
|
||||||
|
</radiogroup>
|
||||||
|
</row>
|
||||||
|
|
||||||
<row>
|
<row>
|
||||||
<hbox align="center">
|
<hbox align="center">
|
||||||
<label value="&zotero.preferences.fontSize;" control="fontSize"/>
|
<label value="&zotero.preferences.fontSize;" control="fontSize"/>
|
||||||
|
|
|
@ -2328,6 +2328,9 @@ Zotero.Prefs = new function(){
|
||||||
Zotero.Schema.stopRepositoryTimer();
|
Zotero.Schema.stopRepositoryTimer();
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
|
[ "layout", function(val) {
|
||||||
|
Zotero.getActiveZoteroPane().updateLayout();
|
||||||
|
}],
|
||||||
[ "note.fontSize", function(val) {
|
[ "note.fontSize", function(val) {
|
||||||
if (val < 6) {
|
if (val < 6) {
|
||||||
Zotero.Prefs.set('note.fontSize', 11);
|
Zotero.Prefs.set('note.fontSize', 11);
|
||||||
|
|
|
@ -93,6 +93,7 @@ var ZoteroPane = new function()
|
||||||
|
|
||||||
var zp = document.getElementById('zotero-pane');
|
var zp = document.getElementById('zotero-pane');
|
||||||
Zotero.setFontSize(zp);
|
Zotero.setFontSize(zp);
|
||||||
|
ZoteroPane_Local.updateLayout();
|
||||||
ZoteroPane_Local.updateToolbarPosition();
|
ZoteroPane_Local.updateToolbarPosition();
|
||||||
window.addEventListener("resize", ZoteroPane_Local.updateToolbarPosition, false);
|
window.addEventListener("resize", ZoteroPane_Local.updateToolbarPosition, false);
|
||||||
window.setTimeout(ZoteroPane_Local.updateToolbarPosition, 0);
|
window.setTimeout(ZoteroPane_Local.updateToolbarPosition, 0);
|
||||||
|
@ -375,6 +376,7 @@ var ZoteroPane = new function()
|
||||||
_madeVisible = true;
|
_madeVisible = true;
|
||||||
|
|
||||||
this.unserializePersist();
|
this.unserializePersist();
|
||||||
|
this.updateLayout();
|
||||||
this.updateToolbarPosition();
|
this.updateToolbarPosition();
|
||||||
this.updateTagSelectorSize();
|
this.updateTagSelectorSize();
|
||||||
|
|
||||||
|
@ -4578,7 +4580,24 @@ var ZoteroPane = new function()
|
||||||
var browserWindow = wm.getMostRecentWindow("navigator:browser");
|
var browserWindow = wm.getMostRecentWindow("navigator:browser");
|
||||||
if(browserWindow.ZoteroOverlay) browserWindow.ZoteroOverlay.toggleTab();
|
if(browserWindow.ZoteroOverlay) browserWindow.ZoteroOverlay.toggleTab();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the layout to either a three-vertical-pane layout and a layout where itemsPane is above itemPane
|
||||||
|
*/
|
||||||
|
this.updateLayout = function() {
|
||||||
|
var layoutSwitcher = document.getElementById("zotero-layout-switcher");
|
||||||
|
var itemsSplitter = document.getElementById("zotero-items-splitter");
|
||||||
|
|
||||||
|
if(Zotero.Prefs.get("layout") === "stacked") { // itemsPane above itemPane
|
||||||
|
layoutSwitcher.setAttribute("orient", "vertical");
|
||||||
|
itemsSplitter.setAttribute("orient", "vertical");
|
||||||
|
} else { // three-vertical-pane
|
||||||
|
layoutSwitcher.setAttribute("orient", "horizontal");
|
||||||
|
itemsSplitter.setAttribute("orient", "horizontal");
|
||||||
|
}
|
||||||
|
|
||||||
|
this.updateToolbarPosition();
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* Shows the Zotero pane, making it visible if it is not and switching to the appropriate tab
|
* Shows the Zotero pane, making it visible if it is not and switching to the appropriate tab
|
||||||
* if necessary.
|
* if necessary.
|
||||||
|
@ -4607,7 +4626,7 @@ var ZoteroPane = new function()
|
||||||
var elValues = serializedValues[id];
|
var elValues = serializedValues[id];
|
||||||
for(var attr in elValues) {
|
for(var attr in elValues) {
|
||||||
// TEMP: For now, ignore persisted collapsed state for item pane splitter
|
// TEMP: For now, ignore persisted collapsed state for item pane splitter
|
||||||
if (el.id == 'zotero-items-splitter') continue;
|
if (el.id == 'zotero-items-splitter' && attr == 'state') continue;
|
||||||
// And don't restore to min-width if splitter was collapsed
|
// And don't restore to min-width if splitter was collapsed
|
||||||
if (el.id == 'zotero-item-pane' && attr == 'width' && elValues[attr] == 250
|
if (el.id == 'zotero-item-pane' && attr == 'width' && elValues[attr] == 250
|
||||||
&& 'zotero-items-splitter' in serializedValues
|
&& 'zotero-items-splitter' in serializedValues
|
||||||
|
@ -4650,48 +4669,32 @@ var ZoteroPane = new function()
|
||||||
* Moves around the toolbar when the user moves around the pane
|
* Moves around the toolbar when the user moves around the pane
|
||||||
*/
|
*/
|
||||||
this.updateToolbarPosition = function() {
|
this.updateToolbarPosition = function() {
|
||||||
if(document.getElementById("zotero-pane-stack").hidden) return;
|
var paneStack = document.getElementById("zotero-pane-stack");
|
||||||
|
if(paneStack.hidden) return;
|
||||||
|
|
||||||
|
var stackedLayout = Zotero.Prefs.get("layout") === "stacked";
|
||||||
|
|
||||||
var collectionsPane = document.getElementById("zotero-collections-pane");
|
var collectionsPane = document.getElementById("zotero-collections-pane");
|
||||||
var collectionsToolbar = document.getElementById("zotero-collections-toolbar");
|
var collectionsToolbar = document.getElementById("zotero-collections-toolbar");
|
||||||
var collectionsSplitter = document.getElementById("zotero-collections-splitter");
|
|
||||||
var itemsPane = document.getElementById("zotero-items-pane");
|
var itemsPane = document.getElementById("zotero-items-pane");
|
||||||
var itemsToolbar = document.getElementById("zotero-items-toolbar");
|
var itemsToolbar = document.getElementById("zotero-items-toolbar");
|
||||||
var itemsSplitter = document.getElementById("zotero-items-splitter");
|
|
||||||
var itemPane = document.getElementById("zotero-item-pane");
|
var itemPane = document.getElementById("zotero-item-pane");
|
||||||
var itemToolbar = document.getElementById("zotero-item-toolbar");
|
var itemToolbar = document.getElementById("zotero-item-toolbar");
|
||||||
|
|
||||||
var collectionsPaneComputedStyle = window.getComputedStyle(collectionsPane, null);
|
collectionsToolbar.style.width = collectionsPane.boxObject.width + 'px';
|
||||||
var collectionsSplitterComputedStyle = window.getComputedStyle(collectionsSplitter, null);
|
|
||||||
var itemsPaneComputedStyle = window.getComputedStyle(itemsPane, null);
|
|
||||||
var itemsSplitterComputedStyle = window.getComputedStyle(itemsSplitter, null);
|
|
||||||
var itemPaneComputedStyle = window.getComputedStyle(itemPane, null);
|
|
||||||
|
|
||||||
var collectionsPaneWidth = collectionsPaneComputedStyle.getPropertyValue("width");
|
if (stackedLayout || itemPane.collapsed) {
|
||||||
var collectionsSplitterWidth = collectionsSplitterComputedStyle.getPropertyValue("width");
|
// The itemsToolbar and itemToolbar share the same space, and it seems best to use some flex attribute from right (because there might be other icons appearing or vanishing).
|
||||||
var itemsPaneWidth = itemsPaneComputedStyle.getPropertyValue("width");
|
|
||||||
var itemsSplitterWidth = itemsSplitterComputedStyle.getPropertyValue("width");
|
|
||||||
var itemPaneWidth = itemPaneComputedStyle.getPropertyValue("width");
|
|
||||||
|
|
||||||
collectionsToolbar.style.width = collectionsPaneWidth;
|
|
||||||
collectionsToolbar.style.marginRight = collectionsSplitterWidth;
|
|
||||||
itemsToolbar.style.marginRight = itemsSplitterWidth;
|
|
||||||
|
|
||||||
var itemsToolbarWidthNumber = parseInt(itemsPaneWidth, 10);
|
|
||||||
|
|
||||||
if (collectionsPane.collapsed) {
|
|
||||||
var collectionsToolbarComputedStyle = window.getComputedStyle(collectionsToolbar, null);
|
|
||||||
var collectionsToolbarWidth = collectionsToolbarComputedStyle.getPropertyValue("width");// real width (nonzero) after the new definition
|
|
||||||
itemsToolbarWidthNumber = itemsToolbarWidthNumber-parseInt(collectionsToolbarWidth, 10);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (itemPane.collapsed) {
|
|
||||||
// Then the itemsToolbar and itemToolbar share the same space, and it seems best to use some flex attribute from right (because there might be other icons appearing or vanishing).
|
|
||||||
itemsToolbar.style.removeProperty('width');
|
|
||||||
itemsToolbar.setAttribute("flex", "1");
|
itemsToolbar.setAttribute("flex", "1");
|
||||||
itemToolbar.setAttribute("flex", "0");
|
itemToolbar.setAttribute("flex", "0");
|
||||||
} else {
|
} else {
|
||||||
itemsToolbar.style.width = itemsToolbarWidthNumber + "px";
|
var itemsToolbarWidth = itemsPane.boxObject.width;
|
||||||
|
|
||||||
|
if (collectionsPane.collapsed) {
|
||||||
|
itemsToolbarWidth -= collectionsToolbar.boxObject.width;
|
||||||
|
}
|
||||||
|
|
||||||
|
itemsToolbar.style.width = itemsToolbarWidth + "px";
|
||||||
itemsToolbar.setAttribute("flex", "0");
|
itemsToolbar.setAttribute("flex", "0");
|
||||||
itemToolbar.setAttribute("flex", "1");
|
itemToolbar.setAttribute("flex", "1");
|
||||||
}
|
}
|
||||||
|
|
|
@ -248,6 +248,7 @@
|
||||||
</tooltip>
|
</tooltip>
|
||||||
</toolbarbutton>
|
</toolbarbutton>
|
||||||
<toolbarseparator id="zotero-fullscreen-close-separator" class="standalone-no-display"/>
|
<toolbarseparator id="zotero-fullscreen-close-separator" class="standalone-no-display"/>
|
||||||
|
|
||||||
<toolbarbutton id="zotero-tb-fullscreen" tooltiptext="&zotero.toolbar.tab.tooltip;" oncommand="ZoteroPane_Local.toggleTab();" class="zotero-tb-button standalone-no-display"/>
|
<toolbarbutton id="zotero-tb-fullscreen" tooltiptext="&zotero.toolbar.tab.tooltip;" oncommand="ZoteroPane_Local.toggleTab();" class="zotero-tb-button standalone-no-display"/>
|
||||||
<toolbarbutton id="zotero-close-button" class="tabs-closebutton close-icon standalone-no-display" oncommand="ZoteroOverlay.toggleDisplay()"/>
|
<toolbarbutton id="zotero-close-button" class="tabs-closebutton close-icon standalone-no-display" oncommand="ZoteroOverlay.toggleDisplay()"/>
|
||||||
</hbox>
|
</hbox>
|
||||||
|
@ -357,218 +358,220 @@
|
||||||
<grippy id="zotero-collections-grippy"/>
|
<grippy id="zotero-collections-grippy"/>
|
||||||
</splitter>
|
</splitter>
|
||||||
|
|
||||||
<vbox id="zotero-items-pane" zotero-persist="width" flex="1">
|
<box id="zotero-layout-switcher" orient="horizontal" zotero-persist="orient" flex="1">
|
||||||
<deck id="zotero-items-pane-content" selectedIndex="0" flex="1">
|
<vbox id="zotero-items-pane" zotero-persist="width height" flex="1">
|
||||||
<!-- Key navigation is handled by listener in itemTreeView.js -->
|
<deck id="zotero-items-pane-content" selectedIndex="0" flex="1">
|
||||||
<tree
|
<!-- Key navigation is handled by listener in itemTreeView.js -->
|
||||||
id="zotero-items-tree"
|
<tree
|
||||||
enableColumnDrag="true"
|
id="zotero-items-tree"
|
||||||
disableKeyNavigation="true"
|
enableColumnDrag="true"
|
||||||
onfocus="if (ZoteroPane_Local.itemsView.rowCount && !ZoteroPane_Local.itemsView.selection.count) { ZoteroPane_Local.itemsView.selection.select(0); }"
|
disableKeyNavigation="true"
|
||||||
onkeydown="ZoteroPane_Local.handleKeyDown(event, this.id)"
|
onfocus="if (ZoteroPane_Local.itemsView.rowCount && !ZoteroPane_Local.itemsView.selection.count) { ZoteroPane_Local.itemsView.selection.select(0); }"
|
||||||
onselect="ZoteroPane_Local.itemSelected(event)"
|
onkeydown="ZoteroPane_Local.handleKeyDown(event, this.id)"
|
||||||
oncommand="ZoteroPane_Local.serializePersist()"
|
onselect="ZoteroPane_Local.itemSelected(event)"
|
||||||
flex="1">
|
oncommand="ZoteroPane_Local.serializePersist()"
|
||||||
<treecols id="zotero-items-columns-header">
|
flex="1">
|
||||||
<treecol
|
<treecols id="zotero-items-columns-header">
|
||||||
id="zotero-items-column-title" primary="true"
|
<treecol
|
||||||
label="&zotero.items.title_column;"
|
id="zotero-items-column-title" primary="true"
|
||||||
flex="4" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.title_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="4" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-firstCreator"
|
<treecol
|
||||||
label="&zotero.items.creator_column;"
|
id="zotero-items-column-firstCreator"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.creator_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-itemType" hidden="true"
|
<treecol
|
||||||
label="&zotero.items.type_column;"
|
id="zotero-items-column-itemType" hidden="true"
|
||||||
width="40" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.type_column;"
|
||||||
<splitter class="tree-splitter"/>
|
width="40" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-date" hidden="true"
|
<treecol
|
||||||
label="&zotero.items.date_column;"
|
id="zotero-items-column-date" hidden="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.date_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-year" hidden="true"
|
<treecol
|
||||||
label="&zotero.items.year_column;"
|
id="zotero-items-column-year" hidden="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.year_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-publisher" hidden="true"
|
<treecol
|
||||||
label="&zotero.items.publisher_column;"
|
id="zotero-items-column-publisher" hidden="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.publisher_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-publicationTitle" hidden="true"
|
<treecol
|
||||||
label="&zotero.items.publication_column;"
|
id="zotero-items-column-publicationTitle" hidden="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.publication_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-journalAbbreviation" hidden="true"
|
<treecol
|
||||||
submenu="true"
|
id="zotero-items-column-journalAbbreviation" hidden="true"
|
||||||
label="&zotero.items.journalAbbr_column;"
|
submenu="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.journalAbbr_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-language" hidden="true"
|
<treecol
|
||||||
submenu="true"
|
id="zotero-items-column-language" hidden="true"
|
||||||
label="&zotero.items.language_column;"
|
submenu="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.language_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-accessDate" hidden="true"
|
<treecol
|
||||||
submenu="true"
|
id="zotero-items-column-accessDate" hidden="true"
|
||||||
label="&zotero.items.accessDate_column;"
|
submenu="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.accessDate_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-libraryCatalog" hidden="true"
|
<treecol
|
||||||
submenu="true"
|
id="zotero-items-column-libraryCatalog" hidden="true"
|
||||||
label="&zotero.items.libraryCatalog_column;"
|
submenu="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.libraryCatalog_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-callNumber" hidden="true"
|
<treecol
|
||||||
submenu="true"
|
id="zotero-items-column-callNumber" hidden="true"
|
||||||
label="&zotero.items.callNumber_column;"
|
submenu="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.callNumber_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-rights" hidden="true"
|
<treecol
|
||||||
submenu="true"
|
id="zotero-items-column-rights" hidden="true"
|
||||||
label="&zotero.items.rights_column;"
|
submenu="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.rights_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-dateAdded" hidden="true"
|
<treecol
|
||||||
label="&zotero.items.dateAdded_column;"
|
id="zotero-items-column-dateAdded" hidden="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.dateAdded_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-dateModified" hidden="true"
|
<treecol
|
||||||
label="&zotero.items.dateModified_column;"
|
id="zotero-items-column-dateModified" hidden="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.dateModified_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-archive" hidden="true"
|
<treecol
|
||||||
submenu="true"
|
id="zotero-items-column-archive" hidden="true"
|
||||||
label="&zotero.items.archive_column;"
|
submenu="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.archive_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-archiveLocation" hidden="true"
|
<treecol
|
||||||
submenu="true"
|
id="zotero-items-column-archiveLocation" hidden="true"
|
||||||
label="&zotero.items.archiveLocation_column;"
|
submenu="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.archiveLocation_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-place" hidden="true"
|
<treecol
|
||||||
submenu="true"
|
id="zotero-items-column-place" hidden="true"
|
||||||
label="&zotero.items.place_column;"
|
submenu="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.place_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-volume" hidden="true"
|
<treecol
|
||||||
submenu="true"
|
id="zotero-items-column-volume" hidden="true"
|
||||||
label="&zotero.items.volume_column;"
|
submenu="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.volume_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-edition" hidden="true"
|
<treecol
|
||||||
submenu="true"
|
id="zotero-items-column-edition" hidden="true"
|
||||||
label="&zotero.items.edition_column;"
|
submenu="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.edition_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-pages" hidden="true"
|
<treecol
|
||||||
submenu="true"
|
id="zotero-items-column-pages" hidden="true"
|
||||||
label="&zotero.items.pages_column;"
|
submenu="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.pages_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-issue" hidden="true"
|
<treecol
|
||||||
submenu="true"
|
id="zotero-items-column-issue" hidden="true"
|
||||||
label="&zotero.items.issue_column;"
|
submenu="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.issue_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-series" hidden="true"
|
<treecol
|
||||||
submenu="true"
|
id="zotero-items-column-series" hidden="true"
|
||||||
label="&zotero.items.series_column;"
|
submenu="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.series_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-seriesTitle" hidden="true"
|
<treecol
|
||||||
submenu="true"
|
id="zotero-items-column-seriesTitle" hidden="true"
|
||||||
label="&zotero.items.seriesTitle_column;"
|
submenu="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.seriesTitle_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-court" hidden="true"
|
<treecol
|
||||||
submenu="true"
|
id="zotero-items-column-court" hidden="true"
|
||||||
label="&zotero.items.court_column;"
|
submenu="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.court_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-medium" hidden="true"
|
<treecol
|
||||||
submenu="true"
|
id="zotero-items-column-medium" hidden="true"
|
||||||
label="&zotero.items.medium_column;"
|
submenu="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.medium_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-genre" hidden="true"
|
<treecol
|
||||||
submenu="true"
|
id="zotero-items-column-genre" hidden="true"
|
||||||
label="&zotero.items.genre_column;"
|
submenu="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.genre_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-system" hidden="true"
|
<treecol
|
||||||
submenu="true"
|
id="zotero-items-column-system" hidden="true"
|
||||||
label="&zotero.items.system_column;"
|
submenu="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.system_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-extra" hidden="true"
|
<treecol
|
||||||
label="&zotero.items.extra_column;"
|
id="zotero-items-column-extra" hidden="true"
|
||||||
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
label="&zotero.items.extra_column;"
|
||||||
<splitter class="tree-splitter"/>
|
flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-hasAttachment"
|
<treecol
|
||||||
class="treecol-image"
|
id="zotero-items-column-hasAttachment"
|
||||||
label="&zotero.tabs.attachments.label;"
|
class="treecol-image"
|
||||||
src="chrome://zotero/skin/attach-small.png"
|
label="&zotero.tabs.attachments.label;"
|
||||||
fixed="true"
|
src="chrome://zotero/skin/attach-small.png"
|
||||||
zotero-persist="ordinal hidden sortActive sortDirection"/>
|
fixed="true"
|
||||||
<splitter class="tree-splitter"/>
|
zotero-persist="ordinal hidden sortActive sortDirection"/>
|
||||||
<treecol
|
<splitter class="tree-splitter"/>
|
||||||
id="zotero-items-column-numNotes" hidden="true"
|
<treecol
|
||||||
class="treecol-image"
|
id="zotero-items-column-numNotes" hidden="true"
|
||||||
label="&zotero.tabs.notes.label;"
|
class="treecol-image"
|
||||||
src="chrome://zotero/skin/treeitem-note-small.png"
|
label="&zotero.tabs.notes.label;"
|
||||||
zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
src="chrome://zotero/skin/treeitem-note-small.png"
|
||||||
</treecols>
|
zotero-persist="width ordinal hidden sortActive sortDirection"/>
|
||||||
<treechildren ondragstart="ZoteroPane_Local.itemsView.onDragStart(event)"
|
</treecols>
|
||||||
ondragenter="return ZoteroPane_Local.itemsView.onDragEnter(event)"
|
<treechildren ondragstart="ZoteroPane_Local.itemsView.onDragStart(event)"
|
||||||
ondragover="return ZoteroPane_Local.itemsView.onDragOver(event)"
|
ondragenter="return ZoteroPane_Local.itemsView.onDragEnter(event)"
|
||||||
ondrop="return ZoteroPane_Local.itemsView.onDrop(event)"/>
|
ondragover="return ZoteroPane_Local.itemsView.onDragOver(event)"
|
||||||
</tree>
|
ondrop="return ZoteroPane_Local.itemsView.onDrop(event)"/>
|
||||||
|
</tree>
|
||||||
<!-- Label for displaying messages when items pane is hidden
|
|
||||||
|
<!-- Label for displaying messages when items pane is hidden
|
||||||
(e.g. "Advanced search mode — press Enter to search.")-->
|
(e.g. "Advanced search mode — press Enter to search.")-->
|
||||||
<vbox id="zotero-items-pane-message-box" pack="center" align="center"/>
|
<vbox id="zotero-items-pane-message-box" pack="center" align="center"/>
|
||||||
</deck>
|
</deck>
|
||||||
</vbox>
|
</vbox>
|
||||||
|
|
||||||
<splitter id="zotero-items-splitter" resizebefore="closest" resizeafter="closest" collapse="after" zotero-persist="state"
|
<splitter id="zotero-items-splitter" resizebefore="closest" resizeafter="closest" collapse="after" orient="horizontal" zotero-persist="state orient"
|
||||||
onmousemove="ZoteroPane_Local.updateToolbarPosition()"
|
onmousemove="ZoteroPane_Local.updateToolbarPosition()"
|
||||||
oncommand="ZoteroPane_Local.updateToolbarPosition()">
|
oncommand="ZoteroPane_Local.updateToolbarPosition()">
|
||||||
<grippy id="zotero-items-grippy"/>
|
<grippy id="zotero-items-grippy"/>
|
||||||
</splitter>
|
</splitter>
|
||||||
|
|
||||||
<!-- itemPane.xul -->
|
<!-- itemPane.xul -->
|
||||||
<vbox id="zotero-item-pane"/>
|
<vbox id="zotero-item-pane"/>
|
||||||
|
</box>
|
||||||
</hbox>
|
</hbox>
|
||||||
</vbox>
|
</vbox>
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,9 @@
|
||||||
<!ENTITY zotero.preferences.showIn.browserPane "Browser pane">
|
<!ENTITY zotero.preferences.showIn.browserPane "Browser pane">
|
||||||
<!ENTITY zotero.preferences.showIn.separateTab "Separate tab">
|
<!ENTITY zotero.preferences.showIn.separateTab "Separate tab">
|
||||||
<!ENTITY zotero.preferences.showIn.appTab "App tab">
|
<!ENTITY zotero.preferences.showIn.appTab "App tab">
|
||||||
|
<!ENTITY zotero.preferences.layout "Layout:">
|
||||||
|
<!ENTITY zotero.preferences.layout.standard "Standard">
|
||||||
|
<!ENTITY zotero.preferences.layout.stacked "Stacked">
|
||||||
<!ENTITY zotero.preferences.fontSize "Font size:">
|
<!ENTITY zotero.preferences.fontSize "Font size:">
|
||||||
<!ENTITY zotero.preferences.fontSize.small "Small">
|
<!ENTITY zotero.preferences.fontSize.small "Small">
|
||||||
<!ENTITY zotero.preferences.fontSize.medium "Medium">
|
<!ENTITY zotero.preferences.fontSize.medium "Medium">
|
||||||
|
|
|
@ -224,6 +224,7 @@
|
||||||
#zotero-items-pane
|
#zotero-items-pane
|
||||||
{
|
{
|
||||||
min-width: 290px;
|
min-width: 290px;
|
||||||
|
min-height: 150px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Used for intro text for My Publications */
|
/* Used for intro text for My Publications */
|
||||||
|
@ -249,6 +250,11 @@
|
||||||
min-width: 250px;
|
min-width: 250px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#zotero-layout-switcher
|
||||||
|
{
|
||||||
|
min-width: 560px;
|
||||||
|
}
|
||||||
|
|
||||||
#zotero-pane .toolbar
|
#zotero-pane .toolbar
|
||||||
{
|
{
|
||||||
height: 32px !important; /* Hard-code this to fix toolbar icon compression on Linux */
|
height: 32px !important; /* Hard-code this to fix toolbar icon compression on Linux */
|
||||||
|
@ -263,9 +269,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#zotero-collections-toolbar {
|
#zotero-collections-toolbar {
|
||||||
|
margin-right: 10px; /* Set to width of splitter for visual aesthetics */
|
||||||
padding-left: 2px;
|
padding-left: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#zotero-items-toolbar {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.zotero-tb-button {
|
.zotero-tb-button {
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
|
|
|
@ -36,6 +36,7 @@ pref("extensions.zotero.downloadAssociatedFiles",true);
|
||||||
pref("extensions.zotero.reportTranslationFailure",true);
|
pref("extensions.zotero.reportTranslationFailure",true);
|
||||||
pref("extensions.zotero.automaticTags",true);
|
pref("extensions.zotero.automaticTags",true);
|
||||||
pref("extensions.zotero.fontSize", "1.0");
|
pref("extensions.zotero.fontSize", "1.0");
|
||||||
|
pref("extensions.zotero.layout", "standard");
|
||||||
pref("extensions.zotero.recursiveCollections", false);
|
pref("extensions.zotero.recursiveCollections", false);
|
||||||
pref("extensions.zotero.attachmentRenameFormatString", '{%c - }{%y - }{%t{50}}');
|
pref("extensions.zotero.attachmentRenameFormatString", '{%c - }{%y - }{%t{50}}');
|
||||||
pref("extensions.zotero.capitalizeTitles", false);
|
pref("extensions.zotero.capitalizeTitles", false);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user