mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
fix(desktop): inline open-with trigger = clear 打开方式 pill (bigger hit target)
真机验证发现正文里那个像素级小 ▾ 难以点中(富卡片的「打开方式」大按钮则一点就弹)。 改成带边框的「打开方式 ⌄」小药丸:更大的点击区 + 更可发现。事件委托不变(aria-label 保留)。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a8406fd903
commit
f93c94bb09
@ -60,8 +60,9 @@ export const AssistantMessage = memo(function AssistantMessage({ content, isStre
|
||||
trigger.dataset.openWithHref = href
|
||||
trigger.setAttribute('aria-label', '打开方式')
|
||||
trigger.tabIndex = -1
|
||||
trigger.textContent = '▾'
|
||||
trigger.style.cssText = 'margin-left:3px;padding:0 3px;border:none;background:transparent;color:var(--color-text-tertiary);cursor:pointer;font-size:11px;line-height:1;vertical-align:middle'
|
||||
trigger.textContent = '打开方式 ⌄'
|
||||
// A clear, properly-sized pill (not a tiny bare caret): bigger hit target + discoverable.
|
||||
trigger.style.cssText = 'display:inline-flex;align-items:center;margin:0 3px;padding:1px 8px;border:1px solid var(--color-border);border-radius:9px;background:var(--color-surface);color:var(--color-text-secondary);cursor:pointer;font-size:11px;line-height:1.5;vertical-align:middle;white-space:nowrap'
|
||||
return trigger
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user