Skip to content

Commit 3a504cf

Browse files
canerakdasovflowd
authored andcommitted
fix: title overflow and mobile return icon alignment
1 parent abce081 commit 3a504cf

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@
1313
items-center
1414
gap-1
1515
text-sm
16-
font-semibold
17-
break-all;
16+
font-semibold;
17+
18+
.longName {
19+
@apply break-all
20+
sm:break-keep;
21+
}
1822

1923
&.return {
20-
@apply font-open-sans;
24+
@apply font-open-sans
25+
shrink-0;
2126

2227
svg {
2328
@apply size-4;

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ const SignatureHeader: FC<SignatureHeaderProps> = ({
2525
})}
2626
>
2727
{isReturn && <ArrowTurnDownLeftIcon />}
28-
<span>
28+
<span
29+
className={classNames(styles.name, {
30+
[styles.longName]: name.length > 16,
31+
})}
32+
>
2933
{name}:
3034
{optional && (
3135
<span

0 commit comments

Comments
 (0)