Put the line being typed in the middle of the bar
The entry asks for a fixed width, so on a window wider than that the compose row sat in the left corner of an otherwise empty bar. Centred now, with a little air under it so it does not sit flat on the bottom edge — and the backlog reserves that much more room above it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
259a064 parent: a477f70 modified
src/frq/app.jolt +9 -2 | @@ -733,7 +733,7 @@ | ||
| 733 | 733 | ;; compose bar, and should: each appears because the reader just |
| 734 | 734 | ;; asked for something — unlike the jump button, which appears |
| 735 | 735 | ;; on its own and must not shift what is under it. |
| 736 | - :reserve (+ 116 | |
| 736 | + :reserve (+ 124 | |
| 737 | 737 | (if @s/replying-to 34 0) |
| 738 | 738 | (if @s/attachment 76 0)) |
| 739 | 739 | :stick-to-bottom true |
| @@ -771,7 +771,14 @@ | ||
| 771 | 771 | "Uploading…" |
| 772 | 772 | "Picture attached")}] |
| 773 | 773 | [:button {:label "✕" :on-click s/clear-attachment!}]])] |
| 774 | - [:hbox {:spacing 8} | |
| 774 | + ;; The line and its buttons on the middle of the width rather than | |
| 775 | + ;; against its left edge: the entry asks for a fixed width, and on a | |
| 776 | + ;; window wider than that a left-aligned row leaves it stranded in the | |
| 777 | + ;; corner of an otherwise empty bar. On a phone the row is as wide as the | |
| 778 | + ;; window and centring costs nothing. | |
| 779 | + ;; A little air under the row, so the line being typed does not sit flat | |
| 780 | + ;; on the bottom edge of the window. | |
| 781 | + [:hbox {:spacing 8 :align :center :margin-bottom 8} | |
| 775 | 782 | ;; narrow enough that Send keeps its place on a phone-width row |
| 776 | 783 | ;; A picture is pasted where everything else is typed: Ctrl+V. The field |
| 777 | 784 | ;; answers a paste of text with the text, and one of a picture reaches |
| @@ -733,7 +733,7 @@ | |||
| 733 | ;; compose bar, and should: each appears because the reader just | 733 | ;; compose bar, and should: each appears because the reader just |
| 734 | ;; asked for something — unlike the jump button, which appears | 734 | ;; asked for something — unlike the jump button, which appears |
| 735 | ;; on its own and must not shift what is under it. | 735 | ;; on its own and must not shift what is under it. |
| 736 | - :reserve (+ 116 | 736 | + :reserve (+ 124 |
| 737 | (if @s/replying-to 34 0) | 737 | (if @s/replying-to 34 0) |
| 738 | (if @s/attachment 76 0)) | 738 | (if @s/attachment 76 0)) |
| 739 | :stick-to-bottom true | 739 | :stick-to-bottom true |
| @@ -771,7 +771,14 @@ | |||
| 771 | "Uploading…" | 771 | "Uploading…" |
| 772 | "Picture attached")}] | 772 | "Picture attached")}] |
| 773 | [:button {:label "✕" :on-click s/clear-attachment!}]])] | 773 | [:button {:label "✕" :on-click s/clear-attachment!}]])] |
| 774 | - [:hbox {:spacing 8} | 774 | + ;; The line and its buttons on the middle of the width rather than |
| 775 | + ;; against its left edge: the entry asks for a fixed width, and on a | ||
| 776 | + ;; window wider than that a left-aligned row leaves it stranded in the | ||
| 777 | + ;; corner of an otherwise empty bar. On a phone the row is as wide as the | ||
| 778 | + ;; window and centring costs nothing. | ||
| 779 | + ;; A little air under the row, so the line being typed does not sit flat | ||
| 780 | + ;; on the bottom edge of the window. | ||
| 781 | + [:hbox {:spacing 8 :align :center :margin-bottom 8} | ||
| 775 | ;; narrow enough that Send keeps its place on a phone-width row | 782 | ;; narrow enough that Send keeps its place on a phone-width row |
| 776 | ;; A picture is pasted where everything else is typed: Ctrl+V. The field | 783 | ;; A picture is pasted where everything else is typed: Ctrl+V. The field |
| 777 | ;; answers a paste of text with the text, and one of a picture reaches | 784 | ;; answers a paste of text with the text, and one of a picture reaches |