fix(web): 计数角标改回悬挂在标题右上角,搜索框圆角恢复 12px
- 角标:绝对定位 top -8 / right -18、16 高、8 圆角、12/700、危险色阴影(原来跟在标题后面占行内空间) - 标题前色条补 8px 右间距,标题起点与旧版一致 - 搜索框:圆角 6 → 12(旧版 card-box 的圆角)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user