From 882045fac8a47d4e7a8592c3c287a0570a7eedf0 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 1 Dec 2026 12:04:25 -0700 Subject: A really long note is collapsed in a feed, with Show more under it. "hey @adam ... could you collapse REALLY long notes, with a 'more...' link to expand if the user wants to read them. I follow @ZeroHedge News ... and their notes are huge!" (npub1muckyme in the coinos community, 2026-11-30, relayed by Adam 2026-12-01). A note longer than about 16 lines at the screen's width (estimated from its text) shows its first ten lines in a feed or on a profile, fading out, then Show more, which opens it in place without opening the thread; the thread shows it whole, as before. Short notes, articles and the note a thread is about are untouched. New feed-long-note-test (collapsed to ~10 lines with Show more, short note alone, Show more expands in place, thread whole) passes; feed-mention-tap, features-smoke, feed-stability, post-markdown and feed-repost pass. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01VMan6WoqaQDYdpWkatPCar --- src/style.css | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/style.css') diff --git a/src/style.css b/src/style.css index 311cfbb..4a86697 100644 --- a/src/style.css +++ b/src/style.css @@ -755,6 +755,11 @@ html:has(#app .chat-card), body:has(#app .chat-card) { overflow: hidden; } .note-content > * { grid-column: 1 / -1; min-width: 0; } .note-content > .note-header { grid-column: 2; grid-row: 1; } .note-content > .note-text { font-size: 18px; line-height: 1.5; } +/* a really long note in a feed: ten lines, fading out, then Show more */ +.note-content > .note-clamp-wrap > .note-text { font-size: 18px; line-height: 1.5; } +.note-text.note-clamped { max-height: 15em; overflow: hidden; + -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); } +.note-more { background: none; border: 0; padding: 4px 0 2px; color: var(--accent, #f7931a); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; } .note-acts { margin-top: 8px; gap: 4px; width: 100%; } .note-acts > .note-act { flex: 1 1 0; min-width: 0; justify-content: center; padding-inline: 2px; } /* server comparison table (Settings → Advanced → Ark server) */ -- cgit v1.2.3