feat: use shared Lightbox for md/tasks image previews#3842
Conversation
Replace the bespoke Dialog viewer in the markdown image decorator with the shared Lightbox component used by channels, bringing zoom/pan, copy, download, and consistent styling to task image previews. https://claude.ai/code/session_018RnRMdqUqYmoPU86w9ctvY
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughSummary by CodeRabbit
Walkthrough
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
md/tasks render description images through the Lexical
MarkdownImagedecorator, whose "view full" action was a bespoke KobalteDialogshowing a plain<img>with only a close button — no zoom/pan, download, or copy.This replaces that custom viewer with the shared
Lightboxcomponent (@core/component/Lightbox) — the same one channels use viaMediaViewerDialog. Task image previews now get the full toolbar (copy, download), zoom-to-cursor/pan, and consistent overlay styling, with no other behavior changes (still triggered by double-click / the enlarge button via the existingviewerOpensignal).https://claude.ai/code/session_018RnRMdqUqYmoPU86w9ctvY
Generated by Claude Code