mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Restyle the mobile UI a bit (#1002)
* Restyle the bottom bar on mobile as an Island * Shorter label for collaboration button, truncate too-long button labels * Refactor safe area things to global vars * Fix scroll bar positioning, don’t block scrollbars with menu island * Update text
This commit is contained in:
parent
f889f6da91
commit
d8bbe536a7
7 changed files with 151 additions and 104 deletions
|
@ -194,3 +194,9 @@ export function sceneCoordsToViewportCoords(
|
|||
|
||||
return { x, y };
|
||||
}
|
||||
|
||||
export function getGlobalCSSVariable(name: string) {
|
||||
return getComputedStyle(document.documentElement).getPropertyValue(
|
||||
`--${name}`,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue