nandi/frqpublic Fork 0
ed06c1a
Commits
Clone
git clone https://git.rickub.com/nandi/frq.git
git clone ssh://git@rickub.com/nandi/frq.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Stop the mode slot taking half of every people row

A row's prose is Flexible so it wraps rather than overflows, and a `:vbox`
holding a label and no control is prose. The people panel's mode slot is
exactly that — a 14-point box with a dim label in it — so it was handed a
flex of its own, and two flex children of one flex each halve the row
between them. The slot drew its 14 points and left the rest of its half
empty; the nick beside it got the other half, and ellipsised at three
letters in a column with room for thirteen.

`flexed` already declines to wrap a child that has said how wide it is —
Expanded hands out a tight width and beats the SizedBox underneath. The
loose Flexible is the same bargain from the other side: it takes width
away from a child that was not asking for any. So the same question is
asked before it too, and the slot goes back to being a plain child the
row measures at 14.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
nandi committed 2026-09-12T08:51:05-07:00 Browse files
ed06c1a parent: a32dbd0
modified flutter/src/frq/hiccup.cljd +12 -1
@@ -469,7 +469,18 @@
469469 (and (identical? fills? fills-row?) (fills-column? n)
470470 (not (asks-width? n)))
471471 (conj! acc (m/Expanded .child (render n)))
472- (and (identical? fills? fills-row?) (flexes-in-row? n))
472+ ;; And not if it has said how wide it is, for the reason
473+ ;; the Expanded arm above says it: a child with a width
474+ ;; needs no share of the row. The people panel is where it
475+ ;; showed — every row there is a 14-point mode slot holding
476+ ;; a dim label and a nick beside it, and a box of text with
477+ ;; no control in it is prose. So the slot took a flex of
478+ ;; its own, the two children halved the row between them,
479+ ;; and every nick ellipsised at the width of three letters
480+ ;; while the slot sat in 60 points of air it had asked for
481+ ;; 14 of.
482+ (and (identical? fills? fills-row?) (flexes-in-row? n)
483+ (not (asks-width? n)))
473484 (conj! acc (m/Flexible .child (render n)))
474485 ;; A button in a row is loosely flexible for the same
475486 ;; reason prose is, and it is the people panel that says
@@ -469,7 +469,18 @@
469 (and (identical? fills? fills-row?) (fills-column? n)469 (and (identical? fills? fills-row?) (fills-column? n)
470 (not (asks-width? n)))470 (not (asks-width? n)))
471 (conj! acc (m/Expanded .child (render n)))471 (conj! acc (m/Expanded .child (render n)))
472- (and (identical? fills? fills-row?) (flexes-in-row? n))472+ ;; And not if it has said how wide it is, for the reason
473+ ;; the Expanded arm above says it: a child with a width
474+ ;; needs no share of the row. The people panel is where it
475+ ;; showed — every row there is a 14-point mode slot holding
476+ ;; a dim label and a nick beside it, and a box of text with
477+ ;; no control in it is prose. So the slot took a flex of
478+ ;; its own, the two children halved the row between them,
479+ ;; and every nick ellipsised at the width of three letters
480+ ;; while the slot sat in 60 points of air it had asked for
481+ ;; 14 of.
482+ (and (identical? fills? fills-row?) (flexes-in-row? n)
483+ (not (asks-width? n)))
473 (conj! acc (m/Flexible .child (render n)))484 (conj! acc (m/Flexible .child (render n)))
474 ;; A button in a row is loosely flexible for the same485 ;; A button in a row is loosely flexible for the same
475 ;; reason prose is, and it is the people panel that says486 ;; reason prose is, and it is the people panel that says