fix(webui): stretch HEALTH row cards to equal height
Gate pulse and Finish setting up sat in the same CSS grid row, but a block-level .card doesn't fill its grid-stretched wrapper's height on its own -- it shrinks to its own content. With Gate pulse's empty state being much shorter than the setup checklist, its card ended up noticeably shorter than its sibling, leaving dead space below it that read as the content floating uncentered relative to the row. Flexing the wrapper and growing .card to fill it (scoped to .dash-top, not the shared .card rule used elsewhere) makes both HEALTH cards match height while each card's own content keeps flowing from the top. Verified via a static repro using the real project CSS: card heights and bottom edges now match (290.5px/y=343 for both, versus 227px/279.5 vs 274.5px/327 before). Closes archie-core-1786637500926-421-7c63bcd3.
This commit is contained in:
1 parent
75e050b674
commit
a6cfbdb3ca
3 files changed
+17
-2
No files matched your search
@@ -197,6 +197,21 @@
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* The grid row stretches each column wrapper to the taller card's height by
|
||||
default, but a block-level .card child doesn't fill that stretched height
|
||||
on its own -- it shrinks to its own content, leaving the shorter card
|
||||
(typically Gate pulse's empty state) sitting flush at the top with dead
|
||||
space below it instead of matching its sibling. Flexing the wrapper and
|
||||
growing the card to fill it makes both HEALTH cards the same height while
|
||||
each card's own content still flows from the top. */
|
||||
.dash-top > div {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.dash-top > div > .card {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
/* No setup panel to show: the gate pulse spans the whole row instead of
|
||||
leaving an empty half. */
|
||||
.dash-top-standalone {
|
||||
|
||||
Reference in new issue
Block a user