Skip to content

Commit 028b1ee

Browse files
committed
update tool tip
1 parent 2bf0410 commit 028b1ee

File tree

2 files changed

+115
-99
lines changed

2 files changed

+115
-99
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Text, VStack, useBreakpoints } from '@fuels/ui';
1+
import { Box, Text, VStack, useBreakpoints } from '@fuels/ui';
22

33
type BlockTimeItemProps = {
44
timeAgo: string;
@@ -8,16 +8,18 @@ export default function BlockTimeItem({ timeAgo }: BlockTimeItemProps) {
88
const { isMobile } = useBreakpoints();
99

1010
return (
11-
<VStack gap="0px">
12-
<Text
13-
className={
14-
isMobile
15-
? 'text-[0.7rem] pr-[0px] text-end whitespace-nowrap'
16-
: 'text-[0.7rem] text-center whitespace-nowrap'
17-
}
18-
>
19-
{timeAgo}
20-
</Text>
21-
</VStack>
11+
<Box className="text-ellipsis">
12+
<VStack gap="0px" className={isMobile ? 'w-full' : ''}>
13+
<Text
14+
className={
15+
isMobile
16+
? 'truncate w-100 text-[0.7rem] text-end text-ellipsis overflow-hidden'
17+
: 'text-[0.7rem] text-center whitespace-nowrap max-w-full'
18+
}
19+
>
20+
{timeAgo}
21+
</Text>
22+
</VStack>
23+
</Box>
2224
);
2325
}

0 commit comments

Comments
 (0)