Fix RTL mode in pdf-reader, note-editor, contextPane
This commit is contained in:
parent
1bf7b1e88e
commit
a418d5ae8d
6 changed files with 21 additions and 6 deletions
|
@ -364,7 +364,7 @@
|
|||
<content>
|
||||
<xul:vbox xbl:inherits="flex" style="display: flex;flex-direction: column;flex-grow: 1;">
|
||||
<!-- Notice: Update query selector for `iframe[anonid="editor-view"]` in contextPane.js if updating this -->
|
||||
<xul:iframe tooltip="editor-tooltip" anonid="editor-view" flex="1" overflow="auto" style="width: 100%;margin-right: 5px;border: 0;width: 100%;margin-right: 5px;border: 0;flex-grow: 1;"
|
||||
<xul:iframe tooltip="editor-tooltip" anonid="editor-view" flex="1" overflow="auto" style="border: 0;width: 100%;flex-grow: 1;"
|
||||
frameBorder="0" src="resource://zotero/note-editor/editor.html" type="content"/>
|
||||
<xul:hbox id="links-container" hidden="true">
|
||||
<xul:linksbox id="links-box" flex="1" xbl:inherits="notitle"/>
|
||||
|
|
|
@ -79,6 +79,14 @@ var ZoteroContextPane = new function () {
|
|||
_notesPaneToggle = document.getElementById('zotero-tb-toggle-notes-pane');
|
||||
_toolbar = document.getElementById('zotero-toolbar');
|
||||
_tabToolbarContainer = document.getElementById('zotero-tab-toolbar-container');
|
||||
|
||||
if (Zotero.rtl) {
|
||||
_tabToolbarContainer.style.left = 0;
|
||||
_splitButton.style.transform = 'scaleX(-1)';
|
||||
}
|
||||
else {
|
||||
_tabToolbarContainer.style.right = 0;
|
||||
}
|
||||
|
||||
_init();
|
||||
|
||||
|
@ -256,7 +264,14 @@ var ZoteroContextPane = new function () {
|
|||
if (!Zotero.Reader.getSidebarOpen()) {
|
||||
width = 0;
|
||||
}
|
||||
_contextPane.style.left = stacked ? width : 'unset';
|
||||
if (Zotero.rtl) {
|
||||
_contextPane.style.left = 0;
|
||||
_contextPane.style.right = stacked ? width : 'unset';
|
||||
}
|
||||
else {
|
||||
_contextPane.style.left = stacked ? width : 'unset';
|
||||
_contextPane.style.right = 0;
|
||||
}
|
||||
}
|
||||
|
||||
function _updateToolbarWidth() {
|
||||
|
|
|
@ -46,7 +46,6 @@
|
|||
#zotero-tab-toolbar-container {
|
||||
position: fixed;
|
||||
z-index: 1;
|
||||
right: 0;
|
||||
-moz-appearance: none;
|
||||
background: linear-gradient(to top, #a9a9a9 0, #a9a9a9 1px, #f6f6f6 1px, #f6f6f6 100%);
|
||||
}
|
||||
|
@ -81,7 +80,7 @@
|
|||
}
|
||||
|
||||
.zotero-context-pane-editor-parent-line .parent-item-type {
|
||||
margin-right: 3px;
|
||||
margin-inline-end: 3px;
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 6f4e81b11788a1059ce6c2cb5f70c30d5578d4de
|
||||
Subproject commit 37dbfa4c51ffaede5c0bc9467eec7136ab3dac7d
|
|
@ -1 +1 @@
|
|||
Subproject commit 3252bf82e265baeb37f7344a7f8b853490823333
|
||||
Subproject commit cff42ffa8f616df41cdd4aec68621a44cee27837
|
|
@ -451,6 +451,7 @@ $toolbar-btn-icon-active-offset: 0;
|
|||
|
||||
// Move this out from mixins
|
||||
#zotero-tb-split {
|
||||
direction: ltr;
|
||||
$item-tool-icon: "mac/item";
|
||||
$item-tool-icon-active: "mac/item-white";
|
||||
$notes-tool-icon: "mac/notes";
|
||||
|
|
Loading…
Reference in a new issue