feat(nests): tighten participant cell min so 4 avatars fit per row

Drops STAGE_CELL_MIN and AUDIENCE_CELL_MIN from 112.dp to 96.dp, which
lets a Pixel-class 411.dp phone fit 4 cells per row instead of 3 (and
unlocks 5/6 columns earlier on tablets). The 100.dp avatars overflow
~2.dp into the 6.dp horizontal arrangement on each side, so neighbors
still show a ~2.dp visible gap. Names ellipsize to the cell width as
before.
This commit is contained in:
Claude
2026-04-28 03:13:12 +00:00
parent 666a93f549
commit e027e2ebe8
@@ -66,13 +66,19 @@ import com.vitorpamplona.amethyst.ui.stringRes
import kotlinx.collections.immutable.ImmutableSet
import kotlinx.collections.immutable.persistentSetOf
private val STAGE_CELL_MIN = 112.dp
private val STAGE_CELL_MIN = 96.dp
private val STAGE_AVATAR = 100.dp
private val AUDIENCE_CELL_MIN = 112.dp
private val AUDIENCE_CELL_MIN = 96.dp
private val AUDIENCE_AVATAR = 100.dp
private val GRID_SPACING = 6.dp
private val AVATAR_RING_WIDTH = 3.dp
// Cell min sits 4.dp under the avatar diameter so 4 columns fit on a
// 411.dp phone (Pixel 6/7/8). The 100.dp avatar overflows ~2.dp into
// the 6.dp horizontal arrangement on each side, leaving a visible
// ~2.dp gap between neighbors. Names below ellipsize to the cell
// width, which is fine since they're short display handles.
// Two rows visible by default. Each cell is roughly avatar + name +
// reaction headroom; with a 100dp avatar one row lifts to ~140dp, so
// two rows + label/padding lands near 320dp — tall enough to show a