Episode 18 game · Kitsu · Fire

Kitsu’s Loom

Kai wove his scroll gallery with flex-wrap, and the last row keeps stretching. Feel the Crooked Weaver tangle each row on its own thread, weave the gallery with Grid and the cards with Flexbox, then prove on the loom that every row lines up.

KitsuYour gallery wraps, Kai, but wrapping is not weaving. Add a card or two and watch the last row.
18Seal 18
kai.app/scrolls

Gallery: display: flex; flex-wrap: wrap

Kitsu’s loom card widths, row by row, measured live

    Every row should share the same column widths. Watch the last row.

    1 · Feel the tangle

    Kai’s gallery is display: flex; flex-wrap: wrap with .card { flex: 1 1 110px }. Add two more scrolls and look at the last row.

    Flex lines, not columns

    With flex-wrap each row is its own flex line, so a short last row grows to fill it. Nothing lines up across rows.

    Grid draws the tracks

    repeat(auto-fill, minmax(200px, 1fr)) makes as many equal columns as fit and keeps empty ones, so every row matches.

    Nest them freely

    Grid places the cards; Flexbox stacks each card and wraps its tags. Add subgrid to line up titles across cards.