Skip to content

Commit

Permalink
fix(ui): use safe inset top to fix windows overlays, fixed #1184
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <tukon479@gmail.com>
  • Loading branch information
Innei committed Oct 27, 2024
1 parent 6786e20 commit dc85570
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/renderer/src/components/ui/media/preview-media.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Wrapper: Component<{
exit={{
opacity: 0,
}}
className="fixed right-3 top-2 flex items-center gap-4"
className="fixed right-3 flex items-center gap-4 safe-inset-top-2"
>
<FixedModalCloseButton onClick={dismiss} />
</m.div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const PeekModal = (
exit={{
opacity: 0,
}}
className="fixed right-3 top-2 flex items-center gap-4"
className="fixed right-3 flex items-center gap-4 safe-inset-top-2"
>
<Tooltip>
<TooltipTrigger asChild>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const PreviewVideoModalContent: ModalContentComponent<{
exit={{
opacity: 0,
}}
className="fixed right-3 top-2 flex items-center gap-4"
className="fixed right-3 flex items-center gap-4 safe-inset-top-2"
>
<FixedModalCloseButton onClick={dismiss} />
</m.div>
Expand Down

0 comments on commit dc85570

Please sign in to comment.