Stop an edited line's chips overflowing the heading
Prose in a row is Flexible and the chip row that fills is Expanded, so the heading's nick, clock, "(edited)" and chips were four flex children taking a quarter of the row each. On a phone a quarter is narrower than three pills, and every line you had rewritten wore Flutter's overflow stripes. Prose beside a filling sibling now takes the width of its words, which is the rule the button arm below it already applies for the same arithmetic. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
52bb072 parent: e5adf58 modified
flutter/src/frq/hiccup.cljd +13 -1 | @@ -446,7 +446,9 @@ | ||
| 446 | 446 | leaves the rest of its half empty — the row then has slack, `:align :end` |
| 447 | 447 | pushes what is in it to the right, and the box the reader types into starts |
| 448 | 448 | halfway across the card. A button beside something that fills takes the width |
| 449 | - of its label and no share at all; the thing that fills is what gives." | |
| 449 | + of its label and no share at all; the thing that fills is what gives. Prose | |
| 450 | + gives way the same way, and for the same arithmetic — the message heading is | |
| 451 | + where that one showed." | |
| 450 | 452 | ([fills? nodes] |
| 451 | 453 | (flexed fills? nodes |
| 452 | 454 | (and (identical? fills? fills-row?) (any-fills-row? nodes)))) |
| @@ -479,7 +481,17 @@ | ||
| 479 | 481 | ;; and every nick ellipsised at the width of three letters |
| 480 | 482 | ;; while the slot sat in 60 points of air it had asked for |
| 481 | 483 | ;; 14 of. |
| 484 | + ;; | |
| 485 | + ;; And not beside something that fills, for the reason the | |
| 486 | + ;; button arm below says it: the message heading is a face, | |
| 487 | + ;; a nick, a clock, an "(edited)" and the chip row that | |
| 488 | + ;; fills, so four flex children took a quarter of the row | |
| 489 | + ;; each, the chips were allotted less than three pills are | |
| 490 | + ;; wide, and every line you had rewritten wore Flutter's | |
| 491 | + ;; overflow stripes. Prose beside a filling sibling takes | |
| 492 | + ;; the width of its words; what fills is what gives. | |
| 482 | 493 | (and (identical? fills? fills-row?) (flexes-in-row? n) |
| 494 | + (not sibling-fills?) | |
| 483 | 495 | (not (asks-width? n))) |
| 484 | 496 | (conj! acc (m/Flexible .child (render n))) |
| 485 | 497 | ;; A button in a row is loosely flexible for the same |
| @@ -446,7 +446,9 @@ | |||
| 446 | leaves the rest of its half empty — the row then has slack, `:align :end` | 446 | leaves the rest of its half empty — the row then has slack, `:align :end` |
| 447 | pushes what is in it to the right, and the box the reader types into starts | 447 | pushes what is in it to the right, and the box the reader types into starts |
| 448 | halfway across the card. A button beside something that fills takes the width | 448 | halfway across the card. A button beside something that fills takes the width |
| 449 | - of its label and no share at all; the thing that fills is what gives." | 449 | + of its label and no share at all; the thing that fills is what gives. Prose |
| 450 | + gives way the same way, and for the same arithmetic — the message heading is | ||
| 451 | + where that one showed." | ||
| 450 | ([fills? nodes] | 452 | ([fills? nodes] |
| 451 | (flexed fills? nodes | 453 | (flexed fills? nodes |
| 452 | (and (identical? fills? fills-row?) (any-fills-row? nodes)))) | 454 | (and (identical? fills? fills-row?) (any-fills-row? nodes)))) |
| @@ -479,7 +481,17 @@ | |||
| 479 | ;; and every nick ellipsised at the width of three letters | 481 | ;; and every nick ellipsised at the width of three letters |
| 480 | ;; while the slot sat in 60 points of air it had asked for | 482 | ;; while the slot sat in 60 points of air it had asked for |
| 481 | ;; 14 of. | 483 | ;; 14 of. |
| 484 | + ;; | ||
| 485 | + ;; And not beside something that fills, for the reason the | ||
| 486 | + ;; button arm below says it: the message heading is a face, | ||
| 487 | + ;; a nick, a clock, an "(edited)" and the chip row that | ||
| 488 | + ;; fills, so four flex children took a quarter of the row | ||
| 489 | + ;; each, the chips were allotted less than three pills are | ||
| 490 | + ;; wide, and every line you had rewritten wore Flutter's | ||
| 491 | + ;; overflow stripes. Prose beside a filling sibling takes | ||
| 492 | + ;; the width of its words; what fills is what gives. | ||
| 482 | (and (identical? fills? fills-row?) (flexes-in-row? n) | 493 | (and (identical? fills? fills-row?) (flexes-in-row? n) |
| 494 | + (not sibling-fills?) | ||
| 483 | (not (asks-width? n))) | 495 | (not (asks-width? n))) |
| 484 | (conj! acc (m/Flexible .child (render n))) | 496 | (conj! acc (m/Flexible .child (render n))) |
| 485 | ;; A button in a row is loosely flexible for the same | 497 | ;; A button in a row is loosely flexible for the same |