aboutsummaryrefslogtreecommitdiffstats
path: root/src/style.css
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-11-17 16:09:04 -0700
committerAdam Soltys <[email protected]>2026-11-17 16:09:04 -0700
commit8d2f2c72a7bb7087879e110f8575bcef00bbc2c0 (patch)
tree0aa81014106643d994f150b5120ace98afad6890 /src/style.css
parenta91155b1904384a8b2f151a9c50df06ad068a397 (diff)
downloadcoinosv3-8d2f2c72a7bb7087879e110f8575bcef00bbc2c0.tar.gz
coinosv3-8d2f2c72a7bb7087879e110f8575bcef00bbc2c0.zip
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.
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VMan6SwkivduFDDkMmnXjZ
Diffstat (limited to 'src/style.css')
-rw-r--r--src/style.css14
1 files changed, 14 insertions, 0 deletions
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); }