fix heatmap/replay css issues

This commit is contained in:
Francis Cao committed 2026-08-04 09:11:47 -07:00
1 parent 56d2f43266
commit fc19aa60d8
3 files changed
+18 -9

No files matched your search

@@ -67,7 +67,12 @@ export function HeatmapsPage({ websiteId }: { websiteId: string }) {
{isPhone ? ( {isPhone ? (
<Column gap="3"> <Column gap="3">
<Row> <Row>
<SearchField value={search} onSearch={setSearch} placeholder="Search" /> <SearchField
value={search}
onSearch={setSearch}
placeholder="Search"
className="w-full max-w-md"
/>
</Row> </Row>
<Row justifyContent="flex-end"> <Row justifyContent="flex-end">
<FilterButtons <FilterButtons
@@ -79,7 +84,12 @@ export function HeatmapsPage({ websiteId }: { websiteId: string }) {
</Column> </Column>
) : ( ) : (
<Row alignItems="center" justifyContent="space-between" gap="4"> <Row alignItems="center" justifyContent="space-between" gap="4">
<SearchField value={search} onSearch={setSearch} placeholder="Search" /> <SearchField
value={search}
onSearch={setSearch}
placeholder="Search"
className="w-full max-w-md"
/>
<FilterButtons <FilterButtons
items={buttons} items={buttons}
value={mode} value={mode}
@@ -5,5 +5,6 @@
.modal { .modal {
width: min(calc(100dvw - 48px), 1320px); width: min(calc(100dvw - 48px), 1320px);
height: calc(100dvh - 80px);
overflow: hidden; overflow: hidden;
} }
@@ -1,12 +1,12 @@
'use client'; 'use client';
import { Column, Dialog, Sheet, type SheetProps } from '@umami/react-zen'; import { Column, Dialog, Modal, type ModalProps } from '@umami/react-zen';
import { ReplayPlayback } from '@/app/(main)/websites/[websiteId]/replays/[replayId]/ReplayPlayback'; import { ReplayPlayback } from '@/app/(main)/websites/[websiteId]/replays/[replayId]/ReplayPlayback';
import { ControlledDialog } from '@/components/common/ControlledDialog'; import { ControlledDialog } from '@/components/common/ControlledDialog';
import { useNavigation } from '@/components/hooks'; import { useNavigation } from '@/components/hooks';
import { buildPath } from '@/lib/url'; import { buildPath } from '@/lib/url';
import styles from './ReplayModal.module.css'; import styles from './ReplayModal.module.css';
export interface ReplayModalProps extends SheetProps { export interface ReplayModalProps extends ModalProps {
websiteId: string; websiteId: string;
replayId?: string; replayId?: string;
} }
@@ -36,16 +36,14 @@ export function ReplayModal({ websiteId, replayId, className, ...props }: Replay
return ( return (
<ControlledDialog> <ControlledDialog>
<Sheet <Modal
{...props} {...props}
side="bottom"
size="calc(100dvh - 80px)"
className={modalClassName} className={modalClassName}
isOpen={!!activeReplayId} isOpen={!!activeReplayId}
onOpenChange={handleOpenChange} onOpenChange={handleOpenChange}
> >
<Column height="100%"> <Column height="100%">
<Dialog className={styles.sheet}> <Dialog className="h-full rounded-lg">
{({ close }) => ( {({ close }) => (
<Column padding="6"> <Column padding="6">
{activeReplayId && ( {activeReplayId && (
@@ -55,7 +53,7 @@ export function ReplayModal({ websiteId, replayId, className, ...props }: Replay
)} )}
</Dialog> </Dialog>
</Column> </Column>
</Sheet> </Modal>
</ControlledDialog> </ControlledDialog>
); );
} }