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 {