mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 16:45:35 +01:00
Fixed tooltip text sizes.
This commit is contained in:
parent
f595da612c
commit
af2c823c1b
3 changed files with 4 additions and 6 deletions
|
|
@ -19,11 +19,9 @@ export function ChartTooltip({
|
||||||
padding="4"
|
padding="4"
|
||||||
borderRadius="md"
|
borderRadius="md"
|
||||||
>
|
>
|
||||||
{title && <Text size="sm">{title}</Text>}
|
{title}
|
||||||
<Row alignItems="center">
|
<Row alignItems="center">
|
||||||
<StatusLight color={color}>
|
<StatusLight color={color}>{value}</StatusLight>
|
||||||
<Text size="sm">{value}</Text>
|
|
||||||
</StatusLight>
|
|
||||||
</Row>
|
</Row>
|
||||||
</Column>
|
</Column>
|
||||||
</FloatingTooltip>
|
</FloatingTooltip>
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ export function WeeklyTraffic({ websiteId }: { websiteId: string }) {
|
||||||
</Row>
|
</Row>
|
||||||
</Focusable>
|
</Focusable>
|
||||||
<Tooltip placement="right">
|
<Tooltip placement="right">
|
||||||
<Text size="base">{`${formatMessage(labels.visitors)}: ${count}`}</Text>
|
<Text>{`${formatMessage(labels.visitors)}: ${count}`}</Text>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,7 @@ export function WorldMap({ websiteId, data, ...props }: WorldMapProps) {
|
||||||
{tooltip && (
|
{tooltip && (
|
||||||
<FloatingTooltip>
|
<FloatingTooltip>
|
||||||
<Box backgroundColor="surface-inverted" color="inverted" padding borderRadius="md">
|
<Box backgroundColor="surface-inverted" color="inverted" padding borderRadius="md">
|
||||||
<Text size="sm">{tooltip}</Text>
|
{tooltip}
|
||||||
</Box>
|
</Box>
|
||||||
</FloatingTooltip>
|
</FloatingTooltip>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue