Skip to content

Commit a84d61c

Browse files
committed
Improve mobile layout spacing and stacking
- Stack PageHeader title and actions vertically on mobile - Make action button full-width on mobile - Reduce padding throughout for tighter layout - Compact empty state with less whitespace
1 parent 282025e commit a84d61c

1 file changed

Lines changed: 53 additions & 1 deletion

File tree

src/stories/CorpusDetailPage.stories.tsx

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,55 @@ const pageStyles = `
402402
}
403403
404404
.corpus-main__header {
405-
padding-top: 8px;
405+
padding-top: 12px;
406+
padding-bottom: 12px;
407+
}
408+
409+
.corpus-main__search {
410+
padding-top: 12px;
411+
padding-bottom: 12px;
412+
}
413+
414+
.corpus-main__content {
415+
padding-top: 16px;
416+
padding-bottom: 16px;
417+
}
418+
419+
/* Stack header row vertically on mobile */
420+
.corpus-header-row {
421+
flex-direction: column;
422+
align-items: stretch;
423+
gap: 8px;
424+
}
425+
426+
.corpus-mobile-toggle {
427+
width: 40px;
428+
margin-top: 0;
429+
}
430+
431+
/* Stack PageHeader title and actions */
432+
.corpus-header-row .oc-page-header__row {
433+
flex-direction: column;
434+
align-items: flex-start;
435+
gap: 12px;
436+
}
437+
438+
.corpus-header-row .oc-page-header__actions {
439+
width: 100%;
440+
}
441+
442+
.corpus-header-row .oc-page-header__actions .oc-btn {
443+
width: 100%;
444+
justify-content: center;
445+
}
446+
447+
/* Compact empty state */
448+
.corpus-main__inner .oc-card {
449+
padding: 0;
450+
}
451+
452+
.corpus-main__inner .oc-empty-state {
453+
padding: 32px 16px;
406454
}
407455
}
408456
@@ -412,6 +460,10 @@ const pageStyles = `
412460
min-width: 100%;
413461
max-width: 320px;
414462
}
463+
464+
.corpus-main__content {
465+
padding: 12px;
466+
}
415467
}
416468
`;
417469

0 commit comments

Comments
 (0)