Skip to content

Commit 1fc9a0c

Browse files
feat(calendar/dialog): increase width and margin
1 parent c2e3152 commit 1fc9a0c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

components/calendar/dialog/page.module.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
position: relative;
77
display: flex;
88
height: 100%;
9-
max-height: calc(100vh - 12px);
9+
max-height: calc(100vh - 48px);
1010

1111
.nav {
1212
display: flex;
@@ -82,8 +82,7 @@
8282
padding: 0 24px;
8383
overflow: auto;
8484
height: 100%;
85-
width: 350px;
86-
min-height: 350px;
85+
width: 400px;
8786
}
8887

8988
@mixin header() {

components/calendar/dialog/surface.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ export default function DialogSurface({
8484
document.documentElement.clientHeight || 0,
8585
window.innerHeight || 0
8686
);
87-
if (alignedCenter < 0) return PREVIEW_MARGIN;
88-
if (alignedCenter + bounds.height > vh) return vh - bounds.height - PREVIEW_MARGIN;
87+
if (alignedCenter < 24) return 24;
88+
if (alignedCenter + bounds.height + 24 > vh) return vh - bounds.height - 24;
8989
return alignedCenter;
9090
}, [alignedCenter, bounds.height]);
9191

0 commit comments

Comments
 (0)