Tweak spacing in Linux QuickFormat dialog

This commit is contained in:
Simon Kornblith 2011-08-02 15:27:36 +00:00
parent 46fc6684c1
commit 3814c9307e
3 changed files with 45 additions and 20 deletions

View File

@ -0,0 +1,25 @@
body {
line-height: 1.5em;
}
#quick-format-search:not([multiline="true"]) {
height: 27px !important;
}
#quick-format-search {
background: white;
padding: 1px 2px 1px 0;
border: 1px solid rgba(0, 0, 0, 0.5);
-moz-appearance: none;
}
#quick-format-dialog {
background: transparent;
-moz-appearance: none;
padding: 0;
}
#zotero-icon {
margin: 3px 0 0 2px;
-moz-appearance: none;
}

View File

@ -75,6 +75,8 @@ var Zotero_QuickFormat = new function () {
keepSorted.setAttribute("checked", "true"); keepSorted.setAttribute("checked", "true");
} }
} }
window.sizeToContent();
} }
/** /**

View File

@ -33,7 +33,7 @@
id="quick-format-dialog" id="quick-format-dialog"
orient="vertical" orient="vertical"
title="Quick Format Citation" title="Quick Format Citation"
width="600" height="42" width="600"
xmlns:html="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
persist="screenX screenY" persist="screenX screenY"
@ -42,7 +42,6 @@
<script src="../include.js"/> <script src="../include.js"/>
<script src="quickFormat.js"/> <script src="quickFormat.js"/>
<vbox id="zotero-select-items-container" flex="1">
<hbox id="quick-format-entry" ondragstart="Zotero_QuickFormat.onDragStart(this, event)"> <hbox id="quick-format-entry" ondragstart="Zotero_QuickFormat.onDragStart(this, event)">
<hbox id="quick-format-search" flex="1" align="start"> <hbox id="quick-format-search" flex="1" align="start">
<toolbarbutton id="zotero-icon" type="menu"> <toolbarbutton id="zotero-icon" type="menu">
@ -61,7 +60,6 @@
tabindex="1" flex="1"/> tabindex="1" flex="1"/>
</hbox> </hbox>
</hbox> </hbox>
</vbox>
<panel id="quick-format-reference-panel" noautofocus="true" norestorefocus="true"> <panel id="quick-format-reference-panel" noautofocus="true" norestorefocus="true">
<richlistbox id="quick-format-reference-list" flex="1"/> <richlistbox id="quick-format-reference-list" flex="1"/>
</panel> </panel>