loopable / web /src /styles /wave57 /home-app.css
fsanyoto's picture
Deploy AIOS web (React glide grid + FastAPI slice)
b80130d verified
Raw History Blame Contribute Delete
1.19 kB
/*
* styles/wave57/home-app.css. W57-T28 (owner instruction 26).
*
* Home and App render from ONE component and now share ONE create affordance, because they share
* one wizard door (`Shell.tsx` passes `openApplicationWizard` to both). Home fills its row with
* three cards; App has a single create door, and `.home-cards` is laid out with
* `repeat(auto-fit, minmax(212px, 1fr))`.
*
* ⛔ `auto-fit` COLLAPSES a track that holds no item, so a lone card would stretch across the whole
* row and measure nothing like a card on Home at the same viewport. Two inert siblings keep the row
* resolving to the same tracks Home resolves to, at every width, so the App card is the same size
* as Home's first card rather than approximately it.
*
* ⛔ `visibility: hidden`, NEVER `display: none`. A `display: none` item is not placed in a track,
* the track collapses, and the parity this file exists for is silently gone.
*/
.home-cards.is-app .home-card-ghost {
visibility: hidden;
box-sizing: border-box;
height: 100%;
/* Use the stretched row's card height, including wrapped text, without a pixel estimate. */
min-height: 100%;
min-width: 0;
pointer-events: none;
}