From cfa932611272a26a8f8d3ca64d2b473245335bc1 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 20 Nov 2026 12:13:31 -0700 Subject: On a phone a live stream's message box stays on screen. "I tried to scroll down to see the bottom of the comments, but because the comments are in their own scroll context, the page wouldn't scroll even when I got to the bottom of the comments, so they were cut off at the bottom of the screen" (Adam, 2026-11-20). The chat was a fixed 60vh under the player, so the newest lines and the message box ran off the bottom of the screen, and the chat kept a swipe that reached its end to itself (overscroll-behavior: contain). The chat now takes the room left under the stream, down to the nav, so the message box and the newest line above it show without scrolling the page; it is measured again when the screen changes size (the keyboard). A long description leaves it a floor of 170px and the page scrolls. The chat no longer holds a scroll at its end either. live-stream-test checks the box sits over the nav, with a few lines and with 3000px of chat; features-smoke passes. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01VMan6Upic5L6MMJzkTn8zg --- src/style.css | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/style.css') diff --git a/src/style.css b/src/style.css index a9ceadb..311cfbb 100644 --- a/src/style.css +++ b/src/style.css @@ -975,7 +975,10 @@ html.no-scroll { overflow: hidden; scrollbar-gutter: auto; } .live-rec-link { background: var(--paper); color: var(--ink); text-decoration: none; } .live-say { padding: 6px 12px; border-radius: 8px; color: #fff; background: rgba(0, 0, 0, .65); font-size: 14px; text-align: center; } /* the top padding is headroom for a hat on the first line's face: a scroller clips what rises out of it */ -.live-chat { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; padding-top: 12px; } +/* no overscroll-behavior here: at the end of the chat the swipe carries on to + the page, or the last lines and the message box stay under the screen edge + with no way to reach them (Adam, 2026-11-20) */ +.live-chat { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; min-height: 120px; overflow-y: auto; padding-top: 12px; } .live-line { display: flex; gap: 8px; align-items: flex-start; min-width: 0; } .live-line-body { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.35; } .live-zap .live-line-body b { color: var(--accent); } @@ -991,7 +994,7 @@ html.no-scroll { overflow: hidden; scrollbar-gutter: auto; } .live-page > .live-chat-card { margin-top: 0; padding-top: 6px; border-top: none; } .live-page > .card > :not(.live-player, .live-chat) { margin-left: 14px; margin-right: 14px; } .live-page .live-player { border-radius: 0; } - .live-page .live-chat { padding: 10px 14px 0; max-height: 60vh; } + .live-page .live-chat { padding: 10px 14px 0; max-height: var(--live-chat-max, 60vh); } .live-page .live-title { font-size: 17px; } .live-chat .chat-row { gap: 10px; } .live-chat .chat-bubble { display: block; background: transparent; border: 0; border-radius: 0; padding: 0; font-size: 15px; } -- cgit v1.2.3