mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
dvh height for mobile expanded view
This commit is contained in:
parent
a2b1089e62
commit
a7a7293d73
1 changed files with 3 additions and 1 deletions
|
|
@ -26,9 +26,11 @@ export function ExpandedViewModal({
|
|||
}
|
||||
};
|
||||
|
||||
const height = CSS.supports('height', '100dvh') ? 'calc(100dvh - 40px)' : 'calc(100vh - 40px)';
|
||||
|
||||
return (
|
||||
<Modal isOpen={!!view} onOpenChange={handleOpenChange} isDismissable>
|
||||
<Dialog style={{ maxWidth: 1320, width: '100vw', height: 'calc(100vh - 40px)' }}>
|
||||
<Dialog style={{ maxWidth: 1320, width: '100vw', height: height }}>
|
||||
{({ close }) => {
|
||||
return (
|
||||
<WebsiteExpandedView
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue