Public: anyone can read this; the crew can change it.
On a phone, Talk's composer stays above the on-screen keyboard and the chat list is its own view #15921
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/15814-on-a-phone-talk-s-composer-stays-above-t → main 0 commits fork
1 file
changed +17
−0
test/talk-page.test.ts +17
| @@ -119,6 +119,23 @@ describe("the page", () => { | ||
| 119 | 119 | expect(html).not.toContain("Back to conversations"); |
| 120 | 120 | }); |
| 121 | 121 | |
| 122 | test("a phone opening /talk/<id> gets the thread view, a Chats link back, a pinned composer and 44 px targets (#15814)", async () => { | |
| 123 | const { talkCss } = await import("../src/web/pages/talk_client.ts"); | |
| 124 | say(alice, "person", "hi"); | |
| 125 | const first = await (await get("/talk", alice)).text(); | |
| 126 | const id = /href="\/talk\/([^"?]+)\?chats=1"/.exec(first)![1]!; | |
| 127 | const html = await (await get(`/talk/${id}`, alice)).text(); | |
| 128 | expect(html).toContain('data-shell data-pane="chat">'); | |
| 129 | expect(html).toContain('class="talk-compose"'); | |
| 130 | expect(html).toMatch(/<a class="talk-back" href="\/talk\/[^"?]+\?chats=1">Chats<\/a>/); | |
| 131 | const narrow = /@media \(max-width: 56\.24rem\) \{([^@]*)\n\}/.exec(talkCss)![1]!; | |
| 132 | expect(narrow).toContain(".talk-shell:not([data-view=\"list\"]) .talk-side { display: none; }"); | |
| 133 | expect(talkCss).toMatch(/\.talk-compose \{[^}]*position: sticky; bottom: var\(--kb, 0px\)/); | |
| 134 | expect(talkCss).toMatch(/\.talk-back[^{]*\{[^}]*min-height: 2\.75rem/); | |
| 135 | expect(talkCss).toMatch(/\.talk-compose \.btn[^{]*\{[^}]*min-height: 2\.75rem/); | |
| 136 | expect(talkCss).toMatch(/\.talk-compose textarea \{[^}]*min-height: 44px/); | |
| 137 | }); | |
| 138 | ||
| 122 | 139 | test("below 900 px the preview keeps a way to the list, and ?chats=1 with ?pane=preview shows the list (#15813)", async () => { |
| 123 | 140 | say(alice, "person", "hi"); |
| 124 | 141 | const tabsOf = (h: string) => h.match(/<nav class="seg talk-tabs"[^>]*>[\s\S]*?<\/nav>/)?.[0] ?? ""; |
new above
offline