mirror of
https://github.com/excalidraw/excalidraw.git
synced 2026-11-29 00:29:42 +03:00
fix(packages/excalidraw): [ui] bound the stats panel; RTL docked-sidebar inset
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)
This commit is contained in:
2 files changed
+16
-2
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user