mirror of
https://github.com/bitwarden/browser
synced 2026-02-25 09:03:28 +00:00
[CL-971] update responsive behavior of three panel layout (#19086)
* update responsive behavior of three panel layout; give sidenav extra top padding on electron; add stories that show mix of drawer and sidenav states --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
export * from "./root-font-size";
|
||||
export * from "./shared.module";
|
||||
|
||||
7
libs/components/src/shared/root-font-size.ts
Normal file
7
libs/components/src/shared/root-font-size.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Returns the root font size in pixels, falling back to 16 if unavailable (e.g. SSR).
|
||||
*/
|
||||
export const getRootFontSizePx = (): number =>
|
||||
typeof document !== "undefined"
|
||||
? parseFloat(getComputedStyle(document.documentElement).fontSize) || 16
|
||||
: 16;
|
||||
Reference in New Issue
Block a user