Tweak spacing in select items dialog

This commit is contained in:
Tom Najdek 2024-01-12 14:03:30 +01:00 committed by Dan Stillman
parent 0734808774
commit f0de6d0d57
3 changed files with 77 additions and 54 deletions

View file

@ -1,27 +1,27 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<!-- <!--
***** BEGIN LICENSE BLOCK ***** ***** BEGIN LICENSE BLOCK *****
Copyright © 2009 Center for History and New Media Copyright © 2009 Center for History and New Media
George Mason University, Fairfax, Virginia, USA George Mason University, Fairfax, Virginia, USA
http://zotero.org http://zotero.org
This file is part of Zotero. This file is part of Zotero.
Zotero is free software: you can redistribute it and/or modify Zotero is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
Zotero is distributed in the hope that it will be useful, Zotero is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details. GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with Zotero. If not, see <http://www.gnu.org/licenses/>. along with Zotero. If not, see <http://www.gnu.org/licenses/>.
***** END LICENSE BLOCK ***** ***** END LICENSE BLOCK *****
--> -->
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://zotero/skin/zotero.css" type="text/css"?> <?xml-stylesheet href="chrome://zotero/skin/zotero.css" type="text/css"?>
@ -43,38 +43,32 @@
persist="screenX screenY width height" persist="screenX screenY width height"
style="display: flex" style="display: flex"
> >
<dialog <dialog
orient="vertical" id="select-items-dialog"
buttons="cancel,accept" orient="vertical"
style="padding: 2em" buttons="cancel,accept"
> >
<script> <script>
var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm"); var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");
Services.scriptloader.loadSubScript("chrome://zotero/content/include.js", this);
Services.scriptloader.loadSubScript("chrome://zotero/content/include.js", this); Services.scriptloader.loadSubScript("chrome://zotero/content/selectItemsDialog.js", this);
Services.scriptloader.loadSubScript("chrome://zotero/content/selectItemsDialog.js", this); // Custom elements
Services.scriptloader.loadSubScript("chrome://zotero/content/customElements.js", this);
// Custom elements </script>
Services.scriptloader.loadSubScript("chrome://zotero/content/customElements.js", this);
</script>
<vbox id="zotero-select-items-container" flex="1">
<hbox align="center" pack="end">
<quick-search-textbox id="zotero-tb-search" timeout="250" oncommand="onSearch()" dir="reverse"/>
</hbox>
<hbox flex="1">
<vbox id="zotero-collections-tree-container" class="virtualized-table-container" style="min-width: 200px">
<html:div id="zotero-collections-tree"></html:div>
</vbox>
<hbox id="zotero-items-pane-content" class="virtualized-table-container" flex="1">
<html:div id="zotero-items-tree"></html:div>
</hbox>
</hbox>
<vbox id="zotero-select-items-container" flex="1">
<hbox id="search-toolbar">
<quick-search-textbox id="zotero-tb-search" timeout="250" oncommand="onSearch()" dir="reverse"/>
</hbox>
<hbox id="collections-items-container">
<vbox id="zotero-collections-tree-container" class="virtualized-table-container">
<html:div id="zotero-collections-tree"></html:div>
</vbox> </vbox>
</dialog> <hbox id="zotero-items-pane-content" class="virtualized-table-container" flex="1">
<html:div id="zotero-items-tree"></html:div>
</hbox>
</hbox>
</vbox>
</dialog>
</window> </window>

View file

@ -41,6 +41,7 @@
@import "components/publications-dialog"; @import "components/publications-dialog";
@import "components/rtfScan.scss"; @import "components/rtfScan.scss";
@import "components/search"; @import "components/search";
@import "components/selectItemsDialog";
@import "components/spinner"; @import "components/spinner";
@import "components/syncButtonTooltip"; @import "components/syncButtonTooltip";
@import "components/tabBar"; @import "components/tabBar";

View file

@ -0,0 +1,28 @@
#select-items-dialog {
padding: 2em;
#zotero-select-items-container {
display: flex;
flex-direction: column;
gap: 8px;
}
#zotero-collections-tree-container {
min-width: 200px;
}
#search-toolbar {
display: flex;
flex-direction: row;
justify-content: flex-end;
}
#search-toolbar {
flex: 0 0 auto;
}
#collections-items-container {
flex: 1 1 auto;
margin-bottom: 8px;
}
}