From 4ad33c7fa2fb55d001cfafe394f2dcfeea860c39 Mon Sep 17 00:00:00 2001 From: dwelle <5153846+dwelle@users.noreply.github.com> Date: Mon, 28 Sep 2026 11:48:39 +0200 Subject: [PATCH] fix(packages/excalidraw): [ui] bound the stats panel; RTL docked-sidebar inset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The stats panel now scrolls within its region like the styles panel, instead of running past the footer and covering the help button in short windows. The inset that keeps region content clear of a docked sidebar used a physical `right`, but the sidebar docks on the left in RTL — so the 8px went to the free edge and the toolbar sat 4px off. It's now `inset-inline-end`. Claude Opus 5.5 (xhigh) --- packages/excalidraw/components/Stats/Stats.scss | 11 +++++++++++ packages/excalidraw/css/styles.scss | 7 +++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/packages/excalidraw/components/Stats/Stats.scss b/packages/excalidraw/components/Stats/Stats.scss index f10b63c3d3..03fff62339 100644 --- a/packages/excalidraw/components/Stats/Stats.scss +++ b/packages/excalidraw/components/Stats/Stats.scss @@ -4,6 +4,17 @@ z-index: var(--zIndex-layerUI); pointer-events: var(--ui-pointerEvents); + // bounded by its region (down to the footer band), scrolling past it + display: flex; + flex-direction: column; + max-height: 100%; + min-height: 0; + + & > .Island { + min-height: 0; + overflow-y: auto; + } + h2 { font-size: 1.5em; margin-block-start: 0.83em; diff --git a/packages/excalidraw/css/styles.scss b/packages/excalidraw/css/styles.scss index b4fc0883d5..5104207ad8 100644 --- a/packages/excalidraw/css/styles.scss +++ b/packages/excalidraw/css/styles.scss @@ -517,9 +517,12 @@ body.excalidraw-cursor-resize * { // the wrapper is flush with a docked sidebar's visible edge; keep the // region content at the same visual clearance from the sidebar it had // when the wrapper stopped at the reserved column instead (this also - // keeps the stack/toast center unchanged) + // keeps the stack/toast center unchanged). Logical, because the sidebar + // docks on the left in RTL. .layer-ui__wrapper--sidebar-docked .exc-regions { - right: calc(var(--editor-container-padding) + var(--space-factor) * 2); + inset-inline-end: calc( + var(--editor-container-padding) + var(--space-factor) * 2 + ); } .exc-regions {