Skip to content

fix(composer): preview thumb min size — close button no longer遮 input#64

Merged
SymbolStar merged 1 commit into
mainfrom
fix-composer-preview-minheight
Jun 5, 2026
Merged

fix(composer): preview thumb min size — close button no longer遮 input#64
SymbolStar merged 1 commit into
mainfrom
fix-composer-preview-minheight

Conversation

@SymbolStar

Copy link
Copy Markdown
Owner

Bug: 当 paste 进 composer 的图片很小(例如 1x1 / 极小 icon)时,preview thumb 会跟着缩小,绝对定位的 × close button(top:-4px right:-4px)会盖到下方的 textarea。\n\nFix: 给 .composer-preview-thumb 和它的 img 都加 min-width/min-height: 32px,并补 object-fit: contain 保证小图居中不拉伸。这样不管原图多小,close button 永远有独立 hit 区。

…esn't overlap input

When a pasted image is very small (e.g. tiny icons / 1x1 pixels), the
preview thumb collapsed near the textarea and the absolutely-positioned
close button (top:-4px right:-4px) could overlap the input box below.

Floor thumb + img at 32x32 so the close button always has a hit area
above the textarea, regardless of source image size.
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

🤖 bot-review (comment-only · phase 1)

Diff: 1 file changed, 5 insertions(+) @ d8594a1

Red-line checks:

  • ✅ A-7.5: no new 'forbidden' code in xiaof

Phase 1: this bot leaves comments only. Auto-approve will be enabled per-path after 1–2 weeks of clean runs. Promotion plan: judy PR #42 follow-up.

@SymbolStar SymbolStar merged commit 381e73b into main Jun 5, 2026
6 of 7 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.

1 participant