Skip to content

feat(mdm): 预览双击图片放大(单击尺寸条不变) - #481

Merged
cursor[bot] merged 1 commit into
masterfrom
cursor/mdm-preview-img-lightbox-975c
Oct 23, 2026
Merged

cursor[bot] merged 1 commit into
masterfrom
cursor/mdm-preview-img-lightbox-975c

Conversation

@Afra55

@Afra55 Afra55 commented Oct 23, 2026

Copy link
Copy Markdown
Owner

改动

  • MDM 预览里双击图片 → 全屏 lightbox(滚轮缩放 / 拖拽 / Esc / 点遮罩关闭)
  • 单击仍只打开尺寸/对齐工具条(逻辑未改)
  • lightbox 挂 document.body,带 data-html2canvas-ignore,不进入导出 PNG / 复制预览

不影响

  • 本地资源图单击改尺寸/对齐
  • 大纲跳转、任务列表、锚点
  • 导出与复制
Open in Web Open in Cursor 

独立 lightbox(滚轮缩放/拖拽/Esc),挂 body 且 html2canvas-ignore,
不改单击改尺寸/对齐,不影响导出与复制预览。

Co-authored-by: Afra55 <afra55@foxmail.com>
@cursor
cursor Bot merged commit fcca03e into master Oct 23, 2026
1 of 2 checks passed
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.

2 participants