Skip to content

Fix show-more truncation distorting media sizing#458

Merged
barrydeen merged 1 commit intomainfrom
fix/show-more-media-sizing
Apr 16, 2026
Merged

Fix show-more truncation distorting media sizing#458
barrydeen merged 1 commit intomainfrom
fix/show-more-media-sizing

Conversation

@barrydeen
Copy link
Copy Markdown
Owner

Summary

  • Posts with images, videos, or audio now skip the collapsible "show more" behavior entirely
  • The heightIn(max=500.dp) constraint was propagating down to media players during Compose measurement, causing videos/images to resize and shift when toggling show more/less
  • Only text-heavy posts (no media) get the collapsible truncation

Test plan

  • Open feed with posts containing videos — verify no "show more" button, video renders at natural size
  • Open feed with posts containing images — same behavior
  • Find a long text-only post — verify "show more" still works with gradient fade
  • Toggle show more/less on text posts — no layout shifts

The heightIn constraint used for "show more" truncation propagated
down to video/image players, causing them to resize and shift position
when toggling show more/less. Posts with media now render at full
height; only text-heavy posts get the collapsible behavior.
@barrydeen barrydeen merged commit 0bc46e5 into main Apr 16, 2026
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