Skip to content

Commit 403159f

Browse files
committed
fix tooltip position and reduce value font size
1 parent 73956fa commit 403159f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/components/Staking/StakingStatsBox.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,27 @@ import { Flex, VStack } from "@/components/ui/flex"
1111
import { getLocaleForNumberFormat } from "@/lib/utils/translations"
1212

1313
const Cell = ({ children }: ChildOnlyProp) => (
14-
<VStack className="space-y-2 border-t border-t-border-preBorder px-8 py-4 first:border-l-0 first:border-t-0 md:border-l md:border-t-0 md:border-l-border-preBorder">
14+
<VStack className="gap-2 border-t border-t-border-preBorder px-8 py-4 first:border-t-0 md:border-t-0">
1515
{children}
1616
</VStack>
1717
)
1818

1919
const Value = ({ children }: ChildOnlyProp) => (
20-
<code className="inline-block bg-none p-0 pe-1 font-monospace text-4xl font-bold text-primary">
20+
<code className="inline-block bg-none p-0 pe-1 font-monospace text-3xl font-bold text-primary">
2121
{children}
2222
</code>
2323
)
2424

2525
const Label = ({ children }: ChildOnlyProp) => (
26-
<Flex className="items-center text-sm uppercase">{children}</Flex>
26+
<Flex className="items-center justify-center gap-2 text-sm uppercase">
27+
{children}
28+
</Flex>
2729
)
2830

2931
// BeaconchainTooltip component
3032
const BeaconchainTooltip = ({ children }: ChildOnlyProp) => (
3133
<Tooltip content={children}>
32-
<MdInfoOutline className="active:primary focus:primary ml-2 h-4 w-4 align-middle hover:text-primary" />
34+
<MdInfoOutline className="active:primary focus:primary h-4 w-4 align-middle hover:text-primary" />
3335
</Tooltip>
3436
)
3537

0 commit comments

Comments
 (0)