Reduce side nav height and unify replay modal corners
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user