fix: less empty space above the clock and the search bar

This commit is contained in:
2026-11-18 16:56:46 +01:00
parent 60f23923ad
commit 4a4401ddb0
+8 -6
View File
@@ -47,7 +47,7 @@ function Dashboard() {
<Wallpaper src={data.wallpaperUrl} />
<main className="flex min-h-svh flex-col items-center px-4">
<header className="flex h-28 w-full max-w-[1200px] items-center gap-4 px-2 sm:px-8">
<header className="flex h-20 w-full max-w-[1200px] items-center gap-4 px-2 sm:px-8">
<Logo className="size-6" />
<h1 className="m-0 text-md font-semibold">{data.title}</h1>
<span className="hidden font-mono text-sm text-white/50 sm:inline">
@@ -69,11 +69,12 @@ function Dashboard() {
</Button>
</header>
<div className="mt-[11vh]">
{/* Spare height: one part above the clock, three parts below the cards.
A short window keeps only the minimum here, a tall one stays balanced. */}
<div className="min-h-8 flex-1" />
<Clock />
</div>
<div className="mt-10 flex w-full justify-center sm:mt-14">
<div className="mt-8 flex w-full justify-center sm:mt-10">
<SearchBar
links={data.cards.flatMap((c) => c.links)}
engine={data.searchEngine}
@@ -106,7 +107,7 @@ function Dashboard() {
/>
</div>
<div className="mt-[9vh] flex w-full flex-col items-center">
<div className="mt-[7vh] flex w-full flex-col items-center">
<CardGrid
cards={data.cards}
onAddCard={() => setCard("new")}
@@ -116,7 +117,8 @@ function Dashboard() {
/>
</div>
<footer className="mt-auto flex w-full items-center justify-end gap-3 pt-10 pb-5 text-sm text-white/60 sm:px-2">
<div className="flex-[3]" />
<footer className="flex w-full items-center justify-end gap-3 pt-10 pb-5 text-sm text-white/60 sm:px-2">
{!data.wallpaperUrl && (
<span>
Photo by{" "}