diff options
| author | Adam Soltys <[email protected]> | 2026-12-01 12:04:25 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-12-01 12:04:25 -0700 |
| commit | 882045fac8a47d4e7a8592c3c287a0570a7eedf0 (patch) | |
| tree | 9126c6527890127de4ecab440974178250ecaa2b /src/style.css | |
| parent | b4c47b8a23e189bcd20fc833b3530dff5f7a20e8 (diff) | |
| download | coinosv3-882045fac8a47d4e7a8592c3c287a0570a7eedf0.tar.gz coinosv3-882045fac8a47d4e7a8592c3c287a0570a7eedf0.zip | |
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.HEADmaster
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VMan6WoqaQDYdpWkatPCar
Diffstat (limited to 'src/style.css')
| -rw-r--r-- | src/style.css | 5 |
1 files changed, 5 insertions, 0 deletions
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) */ |
