diff --git a/.unipi/docs/quick-work/2026-06-03-bubble-footer-actions.md b/.unipi/docs/quick-work/2026-06-03-bubble-footer-actions.md new file mode 100644 index 0000000..2615adb --- /dev/null +++ b/.unipi/docs/quick-work/2026-06-03-bubble-footer-actions.md @@ -0,0 +1,38 @@ +--- +title: "MessageBubble footer — timestamp + favorite + (file) download" +type: quick-work +date: 2026-06-03 +--- + +# MessageBubble footer — timestamp + favorite + (file) download + +## Task +Implement the 全部资料 card layout from Figma `4206-6509`: +- Each card shows a bottom row with the publish timestamp on the left and action buttons on the right. +- Image / album / video / text / link bubbles → 1 button (FavoriteButton). +- File-document bubbles (mp3, pptx, pdf, zip, …) → 2 buttons (FavoriteButton + Download). + +## Changes +- `src/components/messageStream/BubbleAttachmentDownloadButton.tsx` (new) — small circular download button visually matched to `FavoriteButton` (sm). Handles its own download/loading state and surfaces the `SaveToAlbumGuide` toast for media kinds. +- `src/components/messageStream/MessageBubble.tsx` + - Removed the absolute-positioned FavoriteButton for the default variant. + - Removed the right-aligned `