Skip to content

Commit 71afaeb

Browse files
committed
🐛 Fixed contributor posts list not being scrollable
fixes https://linear.app/ghost/issue/ONC-1512/ The contributor layout used `h-full overflow-auto` on the main element with children that also had `h-full`, constraining content to exactly the viewport height. Changed to use a flex column pattern matching the non-contributor SidebarInset layout so content can grow beyond the scroll container.
1 parent 1e76657 commit 71afaeb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/admin/src/layout/admin-layout.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ export function AdminLayout({ children }: AdminLayoutProps) {
2323
if (isContributor) {
2424
return (
2525
<div className="relative h-full bg-background">
26-
<main className="h-full overflow-auto">{children}</main>
26+
<main className="flex h-full flex-col overflow-y-auto">
27+
<div className="flex-1">{children}</div>
28+
</main>
2729
<div className="fixed bottom-3.5 left-3.5 lg:bottom-8 lg:left-8 z-20">
2830
<ContributorUserMenu />
2931
</div>

0 commit comments

Comments
 (0)