From fd86576fe2402833d589c9eb03e540f2721cd9e3 Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Wed, 28 Jan 2026 10:22:36 +0100 Subject: [PATCH] Fix drag handle position in wide mode --- src/stylesheets/components/core/_core.scss | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/stylesheets/components/core/_core.scss b/src/stylesheets/components/core/_core.scss index a9a3708..b3c393e 100644 --- a/src/stylesheets/components/core/_core.scss +++ b/src/stylesheets/components/core/_core.scss @@ -321,8 +321,10 @@ $indent-width: 30; background-position: top 1px left; cursor: grab; @if $platform == 'zotero' { - // When reaching the max width, keep the drag handle attached to the editor edge - --drag-handle-max-width-inline-offset: calc((100% - var(--editor-max-inner-width)) / 2 - var(--drag-handle-width) - 4px); + @at-root [contentViewMode="comfortable"] & { + // When reaching the max width, keep the drag handle attached to the editor edge + --drag-handle-max-width-inline-offset: calc((100% - var(--editor-max-inner-width)) / 2 - var(--drag-handle-width) - 4px); + } } @else { --drag-handle-max-width-inline-offset: 0px;