Variant Layout Math Stays In The Variant

When two looks of one screen each need a fit-exactly-one-screen measurement — measure the fixed blocks, split the remainder into equal gaps, floor it at a minimum — keep a copy per look instead of hoisting one; covers the effect keys the block needs, the invisible spacer that must mirror the ratio actually drawn, and which spacer may animate. Use when the gap above or below a hero element keeps last track's size, when content that should end at the fold overflows or leaves a band of dead space, or before extracting "the same" layout maths from two screens into one helper.

maxrave-dev Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/variant-layout-math-stays-in-the-variant commit 6d69f37795

Frequently asked questions

npx skillmds@latest add maxrave-dev/variant-layout-math-stays-in-the-variant