This commit is contained in:
Vanessa 2022-12-28 20:50:58 +08:00
parent d349f897c9
commit 4d6bdd8624
3 changed files with 8 additions and 3 deletions

View file

@ -118,7 +118,7 @@ export class Asset extends Model {
</div>
</div>
<div id="sidebarResizer"></div>
</div> <!-- sidebarContainer -->
</div>
<div id="mainContainer">
<div class="findbar b3-menu fn__hidden doorHanger" id="findbar">
<input id="findInput" class="toolbarField b3-text-field" placeholder="${window.siyuan.languages.search}" tabindex="91">

View file

@ -84,7 +84,7 @@ class PDFSidebarResizer {
* @private
*/
_mouseMove(evt) {
let width = evt.clientX;
let width = evt.clientX - this.outerContainer.getBoundingClientRect().left;
// For sidebar resizing to work correctly in RTL mode, invert the width.
if (this.isRTL) {
width = this.outerContainerWidth - width;

View file

@ -224,10 +224,15 @@
position: absolute;
top: 0;
bottom: 0;
width: 0;
width: 1px;
z-index: 200;
cursor: ew-resize;
right: -6px;
background-color: var(--b3-border-color);
&:hover {
background-color: var(--b3-scroll-color);
}
}
#loadingBar {