From 46f87e9b22dc1212ab1845d68edaef0c40dbc1b0 Mon Sep 17 00:00:00 2001 From: NanamiAdmin Date: Thu, 10 Sep 2026 20:15:26 +0800 Subject: [PATCH] fix(frontend): adjust the first node card height to avoid higher a little then others --- frontend/src/styles/ui.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/src/styles/ui.css b/frontend/src/styles/ui.css index a706623..1f5096f 100644 --- a/frontend/src/styles/ui.css +++ b/frontend/src/styles/ui.css @@ -244,6 +244,14 @@ h1, h2, h3, h4 { margin-top: 18px; } +/* Cards inside a grid are spaced by `gap`. Without this the stacked-card rule + above would inset every card but the first, leaving the first one sticking + up by 18px. */ +.grid-2 > .card, +.grid-3 > .card { + margin-top: 0; +} + .card-head { display: flex; align-items: center; @@ -651,6 +659,7 @@ h1, h2, h3, h4 { align-items: center; gap: 12px; flex-wrap: wrap; + margin-bottom: 18px; } .toolbar .spacer {