From 8d2f2c72a7bb7087879e110f8575bcef00bbc2c0 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 17 Nov 2026 16:09:04 -0700 Subject: Scrolling the feed shows when you are. "When I'm scrolling the feed, could we have some sort of little counter that shows the date and time of posts where I'm in the timeline, so I can kind of roughly gauge how far back I've scrolled in time?" (Adam, 2026-11-17). Past the first screenful, a small chip under the top bar shows the date and time of the post at the top of the screen, and how long ago it was (Mon 16 Nov · 09:57 · yesterday). It updates as the feed or a profile's posts move and fades 1.2 s after scrolling stops. It is drawn straight into the page each frame, outside render(). New feed-when-test passes, along with feed-new-posts and features-smoke. feed-stability fails at the same step with and without this change. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01VMan6SwkivduFDDkMmnXjZ --- src/style.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/style.css') diff --git a/src/style.css b/src/style.css index 9f2cd35..633d7f6 100644 --- a/src/style.css +++ b/src/style.css @@ -2197,3 +2197,17 @@ html:has(.call-overlay:not(.call-min)) { overflow: hidden; scrollbar-gutter: aut .balance-settings-row .bs-title { font-weight: 600; } .balance-settings-row .bs-tail { color: var(--muted); font-size: 20px; line-height: 1; flex-shrink: 0; width: 14px; text-align: center; } .settings-prefs select { flex: 1 1 0; min-width: 0; } + +/* How far back the feed is scrolled: the post at the top of the screen's + date, under the top bar while scrolling (scrollWhen in messages.js). */ +.feed-when { + position: fixed; z-index: 29; transform: translate(-50%, -4px); + padding: 5px 12px; border-radius: 999px; white-space: nowrap; + font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; + background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--ink); + border: 1px solid var(--line-strong); + -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); + box-shadow: 0 2px 10px rgba(0, 0, 0, .14); + pointer-events: none; opacity: 0; transition: opacity .25s, transform .25s; +} +.feed-when.on { opacity: 1; transform: translate(-50%, 0); } -- cgit v1.2.3