feat(message): collapse very long messages behind an expand toggle - #1966
Open
Th-Underscore wants to merge 1 commit into
Open
feat(message): collapse very long messages behind an expand toggle#1966Th-Underscore wants to merge 1 commit into
Th-Underscore wants to merge 1 commit into
Conversation
Th-Underscore
force-pushed
the
feat/collapse-long-messages
branch
from
August 27, 2026 03:15
aa6483b to
8f38c07
Compare
Author
|
Would be willing to make it a little more prominent, like a fading tail above "Show More". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Very long messages (past ~30 lines) no longer dominate the timeline: the body collapses behind an expand/collapse toggle. Collapsed bodies are clamped with a fade-out hint, and expanding restores the full height inline without disturbing scroll position more than necessary.
Purely cosmetic timeline behavior - message content is untouched, rendering only.
Tested on the desktop app, Ubuntu 24.04.
Type of change
Checklist:
.changesetAI disclosure:
I designed and directed the feature and tested it in the GUI; the code itself was AI-generated.
A self-contained
LongMessageCollapsecomponent measures rendered height (hidden measurement row, thresholds above 30 lines) and swaps between clamped and full render, wrapping the body indisplay: inline-blockwhile the content fits, so the(edited)indicator stays beside the content rather than being pushed below it. It hooks into theRenderMessageContentbody funnel so every renderer picks it up uniformly.