Reduce side nav height and unify replay modal corners

This commit is contained in:
Mike Cao
2026-06-15 21:00:22 -07:00
parent 0130db32ac
commit 5744f04833
3 changed files with 9 additions and 10 deletions
+2 -2
View File
@@ -87,10 +87,10 @@ export function SideNav(props: any) {
<Row <Row
alignItems="center" alignItems="center"
justifyContent="space-between" justifyContent="space-between"
height="60px" minHeight="40px"
style={{ flexShrink: 0 }} style={{ flexShrink: 0 }}
> >
<Row paddingX="3" alignItems="center" justifyContent="space-between" flexGrow="1"> <Row padding="3" alignItems="center" justifyContent="space-between" flexGrow="1">
{!isCollapsed && ( {!isCollapsed && (
<IconLabel icon={<Logo />}> <IconLabel icon={<Logo />}>
<Text weight="bold">umami</Text> <Text weight="bold">umami</Text>
@@ -1,11 +1,9 @@
.modal,
.sheet {
border-radius: 8px 8px 0 0;
}
.modal { .modal {
width: min(calc(100dvw - 48px), 1320px); width: min(calc(100dvw - 48px), 1320px);
overflow: hidden; overflow: hidden;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}
.sheet {
border-top-left-radius: 8px;
border-top-right-radius: 8px;
} }
@@ -18,6 +18,7 @@ export function ReplayModal({ websiteId, replayId, className, ...props }: Replay
updateParams, updateParams,
} = useNavigation(); } = useNavigation();
const activeReplayId = replayId || replay; const activeReplayId = replayId || replay;
const modalClassName = [styles.modal, className].filter(Boolean).join(' ');
const handleOpenChange = (isOpen: boolean) => { const handleOpenChange = (isOpen: boolean) => {
if (!isOpen) { if (!isOpen) {
@@ -37,7 +38,7 @@ export function ReplayModal({ websiteId, replayId, className, ...props }: Replay
{...props} {...props}
placement="bottom" placement="bottom"
offset="80px" offset="80px"
className={[styles.modal, className].filter(Boolean).join(' ')} className={modalClassName}
isOpen={!!activeReplayId} isOpen={!!activeReplayId}
onOpenChange={handleOpenChange} onOpenChange={handleOpenChange}
isDismissable isDismissable