style(webui): optically align directional icons
Introduce reusable one-pixel optical offsets for asymmetric forward and back glyphs without changing control boxes, spacing, or pointer hit areas. Apply the correction consistently to navigation arrows, play controls, send actions, and the account sidebar so directional symbols appear centered across shared controls. No interaction or navigation behavior changes.
This commit is contained in:
8 files changed
+22
-9
No files matched your search
@@ -285,7 +285,7 @@ export function ActionTester({ accounts, docs, presetAction }: { accounts: QQInf
|
||||
<div className="flex gap-2">
|
||||
<button type="button" onClick={onExecute} disabled={invoking} data-press-scale=""
|
||||
className="inline-flex h-11 flex-1 items-center justify-center gap-2 rounded-xl bg-primary text-[15px] font-medium text-primary-foreground shadow-sm transition-[background-color,opacity,scale] duration-150 ease-out hover:bg-primary/90 active:not-disabled:scale-[0.96] motion-reduce:active:scale-100 disabled:opacity-50">
|
||||
{invoking ? <Loader2 className="h-4 w-4 animate-spin" /> : isStream ? <Zap className="h-4 w-4" /> : <Play className="h-4 w-4" />}
|
||||
{invoking ? <Loader2 className="h-4 w-4 animate-spin" /> : isStream ? <Zap className="h-4 w-4" /> : <Play className="optical-forward h-4 w-4" />}
|
||||
{invoking ? '执行中…' : isStream ? '流式执行' : '执行'}
|
||||
</button>
|
||||
{invoking && isStream && streamAbort.current && (
|
||||
|
||||
@@ -161,7 +161,7 @@ export function LiveActivity() {
|
||||
<div className="flex items-center gap-2">
|
||||
<Segmented value={kindFilter} onChange={setKindFilter}
|
||||
options={[{ value: 'all', label: '全部' }, { value: 'event', label: '事件' }, { value: 'action', label: '调用' }]} />
|
||||
<IconBtn onClick={() => setPaused((v) => !v)} title={paused ? '继续' : '暂停'}>{paused ? <Play className="h-4 w-4" /> : <Pause className="h-4 w-4" />}</IconBtn>
|
||||
<IconBtn onClick={() => setPaused((v) => !v)} title={paused ? '继续' : '暂停'}>{paused ? <Play className="optical-forward h-4 w-4" /> : <Pause className="h-4 w-4" />}</IconBtn>
|
||||
<IconBtn onClick={exportJson} title="导出 JSON"><Download className="h-4 w-4" /></IconBtn>
|
||||
<IconBtn onClick={() => setRows([])} title="清空"><Trash2 className="h-4 w-4" /></IconBtn>
|
||||
</div>
|
||||
|
||||
@@ -119,7 +119,7 @@ export function MessageComposer({ accounts }: { accounts: QQInfo[] }) {
|
||||
|
||||
<button type="button" onClick={send} disabled={sending} data-press-scale=""
|
||||
className="inline-flex h-11 items-center justify-center gap-2 rounded-xl bg-primary text-[15px] font-medium text-primary-foreground shadow-sm transition-[background-color,opacity,scale] duration-150 ease-out hover:bg-primary/90 active:not-disabled:scale-[0.96] motion-reduce:active:scale-100 disabled:opacity-50">
|
||||
{sending ? <Loader2 className="h-4 w-4 animate-spin" /> : <Send className="h-4 w-4" />} 发送{hasNodes(segs) ? '(合并转发)' : ''}
|
||||
{sending ? <Loader2 className="h-4 w-4 animate-spin" /> : <Send className="optical-forward h-4 w-4" />} 发送{hasNodes(segs) ? '(合并转发)' : ''}
|
||||
</button>
|
||||
</motion.section>
|
||||
|
||||
|
||||
Reference in new issue
Block a user