Skip to content

Commit cabe894

Browse files
committed
fix(ui): constrain mobile folder home layout
Reserve space for the absolute homepage controls on narrow screens so the language selector no longer overlaps the CodeNomad logo. Apply the existing actions-column height constraint to the recent folder panel across viewport sizes so mobile lists scroll instead of expanding beyond the browse/actions section. Validated with npm run typecheck --workspace @codenomad/ui.
1 parent ee069bf commit cabe894

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

packages/ui/src/styles/components/folder-home.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
min-height: 100%;
1010
}
1111

12+
@media (max-width: 639px) {
13+
.folder-home-shell {
14+
padding-top: 3.5rem;
15+
}
16+
}
17+
1218
.folder-home-hero {
1319
margin-bottom: 1.5rem;
1420
}
@@ -36,6 +42,8 @@
3642

3743
.folder-home-list-panel {
3844
min-height: 16rem;
45+
height: var(--folder-home-actions-height, auto);
46+
max-height: var(--folder-home-actions-height, none);
3947
}
4048

4149
@media (min-width: 1024px) {
@@ -50,10 +58,6 @@
5058
min-width: 0;
5159
}
5260

53-
.folder-home-list-panel {
54-
height: var(--folder-home-actions-height, auto);
55-
max-height: var(--folder-home-actions-height, none);
56-
}
5761
}
5862

5963
@media (min-width: 640px) and (min-height: 721px) {

0 commit comments

Comments
 (0)