Skip to content

Commit

Permalink
fix(Popover): fix max-height when content has actions
Browse files Browse the repository at this point in the history
Max height was not set at all on small devices when the content had actions,
preventing the scroll from working properly.

https://skypicker.slack.com/archives/C7T7QG7M5/p1704291076964889
  • Loading branch information
mvidalgarcia committed Jan 3, 2024
1 parent 0958876 commit 798d7c4
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -207,7 +207,7 @@ const PopoverContentWrapper = ({
"bottom-[var(--actions-height)]",
windowHeight &&
actionsHeight &&
"max-h-[calc(var(--window-height)-var(--actions-height)-32)]",
"max-h-[calc(var(--window-height)-var(--actions-height)-32px)]",
noPadding ? "p-0" : "p-md",
"lm:max-h-[var(--max-height)]",
"lm:rounded-normal",
Expand Down

0 comments on commit 798d7c4

Please sign in to comment.