Skip to content

Commit 6d782d1

Browse files
committed
added global variable for height
1 parent a815187 commit 6d782d1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/ui-components/Containers/MetaBar/index.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
gap-1.5
2424
pb-12
2525
[scrollbar-width:none]
26-
lg:max-h-[calc(100vh-6rem)]
26+
lg:max-h-[calc(100vh-var(--header-height))]
2727
lg:overflow-y-auto
2828
[&::-webkit-scrollbar]:hidden;
2929
}

packages/ui-components/styles/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
color utility to any element that depends on these defaults.
2323
*/
2424
@layer base {
25+
:root {
26+
--header-height: calc(var(--spacing, 0.25rem) * 16);
27+
}
28+
2529
*,
2630
::after,
2731
::before,

0 commit comments

Comments
 (0)