nandi/frqpublic Fork 0
a32dbd0
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 a raised profile card from moving the messages under it

`render-root` puts the screens and the card in a Stack, and a Stack hands its
unpositioned children the parent's constraints loosened. So the screens filled
the window until a hover raised a card, and then shrank onto their own
contents: the conversation narrowed and every message moved sideways under a
pointer that was only resting on a face. Leaving the face took the Stack away
again and they moved back.

`StackFit.expand` is the screens keeping the constraints they had. The window
is bounded there — Scaffold body, see `frq.main` — so all of it is a size that
exists.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
nandi committed 2026-09-12T08:49:39-07:00 Browse files
a32dbd0 parent: c750016
modified flutter/src/frq/hiccup.cljd +8 -0
@@ -1147,6 +1147,14 @@
11471147 (render tree)
11481148 (let [modal (boolean (:modal (props dialog)))]
11491149 (m/Stack
1150+ ;; Expand, and not the default loose fit: a Stack hands its
1151+ ;; unpositioned children the parent's constraints *loosened*, so
1152+ ;; the screens went from filling the window to shrinking onto their
1153+ ;; own contents the moment a hover put a card up the conversation
1154+ ;; narrowed and every message moved under the pointer that was only
1155+ ;; resting on a face. The window is bounded here (Scaffold body,
1156+ ;; see `frq.main`), so asking for all of it is a size there is.
1157+ .fit m/StackFit.expand
11501158 .children
11511159 [(render tree)
11521160 (m/Positioned.fill
@@ -1147,6 +1147,14 @@
1147 (render tree)1147 (render tree)
1148 (let [modal (boolean (:modal (props dialog)))]1148 (let [modal (boolean (:modal (props dialog)))]
1149 (m/Stack1149 (m/Stack
1150+ ;; Expand, and not the default loose fit: a Stack hands its
1151+ ;; unpositioned children the parent's constraints *loosened*, so
1152+ ;; the screens went from filling the window to shrinking onto their
1153+ ;; own contents the moment a hover put a card up the conversation
1154+ ;; narrowed and every message moved under the pointer that was only
1155+ ;; resting on a face. The window is bounded here (Scaffold body,
1156+ ;; see `frq.main`), so asking for all of it is a size there is.
1157+ .fit m/StackFit.expand
1150 .children1158 .children
1151 [(render tree)1159 [(render tree)
1152 (m/Positioned.fill1160 (m/Positioned.fill