Skip to content

Commit

Permalink
fix: add dynamic max height to language selector
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmulier committed Dec 19, 2024
1 parent f8d4a8e commit 6a9806f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions apps/web/src/components/Header/language-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,9 @@ export const LanguageSelectorMobile = ({
</PopoverTrigger>
<PopoverContent
className={cn(
'flex flex-col absolute z-50 bg-[#f39561] dark:bg-[#5f5f5f] rounded-none !rounded-t-lg w-[280px] overflow-scroll no-scrollbar !shadow-none bottom-[51px] left-1/2 -translate-x-1/2 gap-5 px-[14px] pt-[15px]',
'flex flex-col absolute z-50 bg-[#f39561] dark:bg-[#5f5f5f] rounded-none !rounded-t-lg w-[280px] overflow-scroll no-scrollbar !shadow-none bottom-[51px] left-1/2 -translate-x-1/2 gap-5 px-[14px] pt-[15px] max-h-[calc(100dvh-84px)]',
mode === 'dark' && 'dark',
)}
style={{
height: screen.height - 84 + 'px',
}}
addAnimation={false}
onClick={(e: React.MouseEvent) => e.stopPropagation()}
>
Expand Down

0 comments on commit 6a9806f

Please sign in to comment.