Skip to content

Commit 918dfd8

Browse files
committed
Use viewport-relative min-height for Now marker centering on mobile
Replace the fragile flex chain (body → main → exportArea → timeline) with a direct min-height: calc(100dvh - 320px) on the empty timeline. This ensures the Now marker is vertically centered in the remaining viewport space regardless of intermediate DOM elements. https://claude.ai/code/session_01Ri4kZdxskLfNEG6pVgyj3f
1 parent fb0637d commit 918dfd8

3 files changed

Lines changed: 2 additions & 18 deletions

File tree

src/styles/Chooser.module.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,6 @@
218218
padding-bottom: 24px;
219219
}
220220

221-
@media (max-width: 640px) {
222-
.exportArea {
223-
flex: 1;
224-
display: flex;
225-
flex-direction: column;
226-
}
227-
}
228-
229221
/* Hide action buttons during image export */
230222
.exportArea[data-exporting] [data-hide-on-export] {
231223
display: none !important;

src/styles/Timeline.module.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,10 @@ a.marker:focus-visible {
179179
}
180180

181181
.timelineEmpty {
182-
flex: 1;
183182
justify-content: center;
184183
align-items: center;
185-
min-height: unset;
186-
margin-top: 0;
187-
margin-left: 0;
184+
min-height: calc(100dvh - 320px);
185+
margin: 0;
188186
}
189187

190188
.timelineEmpty .marker {

src/styles/globals.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,6 @@ body {
6666
flex-direction: column;
6767
min-height: 100dvh;
6868
}
69-
70-
#main-content {
71-
flex: 1;
72-
display: flex;
73-
flex-direction: column;
74-
}
7569
}
7670

7771
a {

0 commit comments

Comments
 (0)