Skip to content

fix(desktop): more compact "compact" link previews - #5629

Open
tellaho wants to merge 2 commits into
mainfrom
codex/simplify-compact-link-previews
Open

fix(desktop): more compact "compact" link previews#5629
tellaho wants to merge 2 commits into
mainfrom
codex/simplify-compact-link-previews

Conversation

@tellaho

@tellaho tellaho commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Category: improvement
User Impact: Compact link previews now use a single-line title and smaller thumbnail, making conversations easier to scan.

Problem: Compact previews gave long titles and oversized thumbnails too much visual weight in the message timeline.

Solution: Keep titles to one ellipsized line and reduce image thumbnails to a 104×64 treatment while preserving the existing wide aspect ratio; Rich previews remain unchanged.

File changes

desktop/src/shared/ui/compact-link-preview-attachment.tsx
Tightens the Compact presentation with a single-line title and smaller wide thumbnail, leaving Rich previews untouched.

desktop/tests/e2e/messaging.spec.ts
Adds focused coverage for title overflow, exact 64px card and 104×64 thumbnail geometry, and successful decoded-image rendering using a realistic fixture, plus an optional visual capture.

desktop/tests/fixtures/github-pr-5629-og.png
Provides realistic visible image bytes for the compact-preview image-rendering E2E path.

Reproduction steps

  1. Launch the desktop app with link preview style set to Compact.
  2. Send a link whose preview has an image and a long title.
  3. Confirm the thumbnail renders at the smaller wide size and the title truncates to one line with an ellipsis.
  4. Switch link preview style to Rich and confirm its presentation is unchanged.

Screenshot

Compact link preview at 64px tall with a decoded real-image thumbnail and one-line truncated title

Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
tellaho added a commit that referenced this pull request Aug 12, 2026
@tellaho tellaho changed the title simplify compact link previews fix(desktop): simplify compact link previews Aug 12, 2026
Co-authored-by: Taylor Ho <taylorkmho@gmail.com>

Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
@tellaho tellaho changed the title fix(desktop): simplify compact link previews fix(desktop): more compact "compact" link previews Aug 12, 2026
@tellaho
tellaho marked this pull request as ready for review August 12, 2026 06:50
@tellaho
tellaho requested a review from a team as a code owner August 12, 2026 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant