mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +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 (
|
return (
|
||||||
<Modal isOpen={!!view} onOpenChange={handleOpenChange} isDismissable>
|
<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 }) => {
|
{({ close }) => {
|
||||||
return (
|
return (
|
||||||
<WebsiteExpandedView
|
<WebsiteExpandedView
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue