1
0
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:
Will Martin
2026-02-23 11:56:01 -05:00
committed by GitHub
parent 27fd6be5ec
commit c5e73b4b8c
22 changed files with 601 additions and 221 deletions

View File

@@ -1 +1,2 @@
export * from "./root-font-size";
export * from "./shared.module";

View 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;