fix(web): 计数角标改回悬挂在标题右上角,搜索框圆角恢复 12px

- 角标:绝对定位 top -8 / right -18、16 高、8 圆角、12/700、危险色阴影(原来跟在标题后面占行内空间)
- 标题前色条补 8px 右间距,标题起点与旧版一致
- 搜索框:圆角 6 → 12(旧版 card-box 的圆角)
This commit is contained in:
stash
2026-10-29 10:23:09 +08:00
parent de1af92ee5
commit 2724d6f3ff
2 changed files with 39 additions and 8 deletions
@@ -1,4 +1,4 @@
import { Badge, Card, Icon, IconButton, Space, Title } from '@stash/ui'
import { Badge, Card, Icon, IconButton, Title } from '@stash/ui'
import type { ReactNode } from 'react'
/**
@@ -19,13 +19,15 @@ export function SectionCard({ title, count, barColor, onMore, children }: Sectio
return (
<Card padding="md" className="section-card">
<div className="section-header">
<Space gap="sm">
<span className="section-title-wrapper">
<span className="section-bar" style={{ backgroundColor: barColor }} aria-hidden="true" />
<Title level={3} as="h2" weight="semibold">
{title}
</Title>
<Badge count={count} tone="danger" />
</Space>
<span className="section-title-box">
<Title level={3} as="h2" weight="semibold">
{title}
</Title>
<Badge count={count} tone="danger" className="count-badge" />
</span>
</span>
{onMore !== undefined && (
<IconButton