Skip to content

Commit 9952330

Browse files
fix(mosaic): cap popover height to the available viewport space (#10009)
1 parent 3bf8fa4 commit 9952330

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

‎packages/mosaic/src/components/popover/popover.styles.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const styles = stylex.create({
7979
default: `${easingVars['--cl-ease-enter']}, ${easingVars['--cl-ease-default']}`,
8080
':where([data-ending-style])': easingVars['--cl-ease-exit'],
8181
},
82-
maxHeight: 'min(80dvh, 36rem)',
82+
maxHeight: 'min(var(--cl-available-height, 80dvh), 36rem)',
8383
maxWidth: 'calc(100vw - 2rem)',
8484
minHeight: 0,
8585
},

0 commit comments

Comments
 (0)