fix(ui): vertical centering — h-full → flex-1 on route containers
h-full (height:100%) doesn't resolve when the parent only has flex-1 without an explicit height. flex-1 (flex-grow) works because the parent App.tsx <main> IS a flex container — no explicit height needed. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
43fdb7e189
commit
89e010cc5d
2 files changed
+2
-2
No files matched your search
@@ -10,7 +10,7 @@ export default function EditorsRoute() {
|
||||
const t = useT()
|
||||
|
||||
return (
|
||||
<main className="flex flex-col h-full">
|
||||
<main className="flex-1 flex flex-col">
|
||||
<header className="px-6 py-4 border-b border-[var(--color-border)] flex items-center justify-between">
|
||||
<div className="flex items-baseline gap-3">
|
||||
<Link to="/" className="no-underline">
|
||||
|
||||
@@ -52,7 +52,7 @@ export default function HomeRoute() {
|
||||
}
|
||||
|
||||
return (
|
||||
<main className="flex flex-col h-full">
|
||||
<main className="flex-1 flex flex-col">
|
||||
<header className="px-6 py-4 border-b border-[var(--color-border)] flex items-center justify-between">
|
||||
<div className="flex items-baseline gap-3">
|
||||
<Brand size="lg" />
|
||||
|
||||
Reference in new issue
Block a user