nandi/frqpublic Fork 0
5fcc566
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.

Let the chat header wrap rather than crop a button

← Chats, the room's name, People and Overview do not fit across a phone's
360 points, and in a Row every one of them is a flex child sharing what
there is — so Overview was allotted a quarter of the width and painted
itself "Overvi…". Wrapped, each control takes the width of its own label
and the row runs onto a second line when it has to. A window wide enough
for one line is unchanged, and the libcosmic backend lays the row out
itself and ignores the prop.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
nandi committed 2026-09-12T09:29:42-07:00 Browse files
5fcc566 parent: ce82425
modified common/frq/screens/chat.cljc +9 -1
@@ -1184,7 +1184,15 @@
11841184 [:vbox {:spacing 8 :margin 12 :fill-height true
11851185 :on-key (fn [k]
11861186 (when (= k "ctrl+end") (actions/jump-to-present!)))}
1187- [:hbox {:spacing 8}
1187+ ;; Wrapping, because on a phone this row asks for more than there is:
1188+ ;; ← Chats, the room's name, People and Overview do not fit across 360
1189+ ;; points, and in a Row every one of them is a flex child sharing what
1190+ ;; there is — so Overview was allotted a quarter of the width and painted
1191+ ;; itself "Overvi…". Wrapped, each control takes the width of its own
1192+ ;; label and the row runs onto a second line when it has to. On a window
1193+ ;; wide enough for one line this changes nothing, and the libcosmic
1194+ ;; backend lays the row out itself and ignores the prop.
1195+ [:hbox {:spacing 8 :wrap true}
11881196 ;; The way back to the list, on a window with room for one thing at a
11891197 ;; time. Beside the list there is nothing to go back to, so the button
11901198 ;; goes — in a wrapper of its own, since a child that comes and goes
@@ -1184,7 +1184,15 @@
1184 [:vbox {:spacing 8 :margin 12 :fill-height true1184 [:vbox {:spacing 8 :margin 12 :fill-height true
1185 :on-key (fn [k]1185 :on-key (fn [k]
1186 (when (= k "ctrl+end") (actions/jump-to-present!)))}1186 (when (= k "ctrl+end") (actions/jump-to-present!)))}
1187- [:hbox {:spacing 8}1187+ ;; Wrapping, because on a phone this row asks for more than there is:
1188+ ;; ← Chats, the room's name, People and Overview do not fit across 360
1189+ ;; points, and in a Row every one of them is a flex child sharing what
1190+ ;; there is — so Overview was allotted a quarter of the width and painted
1191+ ;; itself "Overvi…". Wrapped, each control takes the width of its own
1192+ ;; label and the row runs onto a second line when it has to. On a window
1193+ ;; wide enough for one line this changes nothing, and the libcosmic
1194+ ;; backend lays the row out itself and ignores the prop.
1195+ [:hbox {:spacing 8 :wrap true}
1188 ;; The way back to the list, on a window with room for one thing at a1196 ;; The way back to the list, on a window with room for one thing at a
1189 ;; time. Beside the list there is nothing to go back to, so the button1197 ;; time. Beside the list there is nothing to go back to, so the button
1190 ;; goes — in a wrapper of its own, since a child that comes and goes1198 ;; goes — in a wrapper of its own, since a child that comes and goes