Skip to content

Commit df4269a

Browse files
authored
fix: FunctionSignature return type border (#9050)
fix: remove border and padding when FunctionSignature has only return
1 parent 797ea1b commit df4269a

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

packages/ui-components/src/Common/Signature/SignatureItem/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const SignatureItem: FC<PropsWithChildren<SignatureItemProps>> = ({
1818
children,
1919
}) => (
2020
<div
21+
data-kind={kind}
2122
className={classNames(styles.item, {
2223
[styles.return]: kind === 'return',
2324
})}

packages/ui-components/src/Common/Signature/SignatureRoot/index.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,10 @@
2222
px-4
2323
py-3
2424
dark:border-neutral-900;
25+
26+
&:has(> [data-kind='return']:only-child) {
27+
@apply border-0
28+
px-0
29+
py-0;
30+
}
2531
}

0 commit comments

Comments
 (0)