dev→main: post-card redesign (images→modal, in-place text expand) #67
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
HEAD
509a795, run #524 green. No backend changes / no new migrations (alembic head stays 0036).modal.open(id, { postImageIds })) so you view big and arrow through all the post's images (lazygetPostFullfor posts with >6 images; +N opens at the first not-yet-shown image).description_truncatedflag OR a measured CSS-clamp overflow); expanding loadsdescription_fulland renders it unclamped.download_url).PostImageGrid.vuemosaic.🤖 Generated with Claude Code
Post cards no longer expand the whole card on click (the old two-click path to the images). The card is compact-only now: - Hero / rail thumbs / the +N tile are buttons that open the post-scoped image modal (modal.open(id, { postImageIds })) so you view big + arrow through ALL the post's images. The feed caps thumbnails at 6, so for posts with more we lazily getPostFull to get the complete id list; +N opens at the first hidden image. - The description is the ONLY in-place expansion: a Show more / Show less toggle shown only when the text is actually truncated (server description_truncated flag OR a measured CSS-clamp overflow, ResizeObserver-guarded). Expanding loads description_full when server-truncated and renders it unclamped. - Attachments: download chips now render inline in the compact card (the feed already carries download_url), since the expanded view is gone. Removes PostImageGrid.vue (the mosaic, now unused). Tests cover show-more visibility + image-click opening the scoped modal. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>