Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

💄 style(settings): align the trash filters with the table row baseline (#23599)

Lobehub Coder97de32dad2a7
diff --git a/src/components/Skeleton/Settings/tabs/Trash.tsx b/src/components/Skeleton/Settings/tabs/Trash.tsx
index 59cedf9fb0d..33b563a00ec 100644
--- a/src/components/Skeleton/Settings/tabs/Trash.tsx
+++ b/src/components/Skeleton/Settings/tabs/Trash.tsx
@@ -56,7 +56,8 @@ const Body = () => {
background: cssVar.colorBgContainer,
borderRadius: cssVar.borderRadius,
overflow: 'hidden',
- paddingBlock: 16,
+ // Mirrors `TrashList`: no top inset, only the list keeps its block padding.
+ paddingBlockEnd: 16,
}}
>
<Flexbox
@@ -64,7 +65,7 @@ const Body = () => {
align={'center'}
gap={12}
justify={'space-between'}
- style={{ paddingBlockEnd: 16, paddingInline: 24 }}
+ style={{ minHeight: 36, paddingInline: 24 }}
>
<SkeletonBar height={32} radius={8} width={56} />
<SkeletonBar height={32} radius={8} width={112} />
diff --git a/src/features/Settings/trash/features/TrashList.tsx b/src/features/Settings/trash/features/TrashList.tsx
index aa1661c1fa8..195538b78e6 100644
--- a/src/features/Settings/trash/features/TrashList.tsx
+++ b/src/features/Settings/trash/features/TrashList.tsx
@@ -79,7 +79,9 @@ const segmentedStyles = { item: { height: controlHeight.small } };
const styles = stylex.create({
container: {
overflow: 'hidden',
- paddingBlock: densityTokens['--lobe-density-card-padding'],
+ // No top padding: the retention note above already owns the gap, so the card
+ // inset only pushed the filters down off the table's own row baseline.
+ paddingBlockEnd: densityTokens['--lobe-density-card-padding'],
borderRadius: cssVar.borderRadius,
backgroundColor: cssVar.colorBgContainer,
backgroundImage: 'none',
@@ -90,7 +92,9 @@ const styles = stylex.create({
gap: densityTokens['--lobe-density-content-gap'],
alignItems: 'center',
justifyContent: 'space-between',
- paddingBlockEnd: densityTokens['--lobe-density-card-padding'],
+ // Exactly one table row tall: the filters and the column heads below them then
+ // sit on the same baseline instead of the filters owning padding the heads do not.
+ minHeight: densityTokens['--lobe-density-row-height'],
paddingInline: '24px',
},
muted: {