mirror of
https://github.com/umami-software/umami.git
synced 2026-02-16 10:35:35 +01:00
This commit is contained in:
parent
d26ed3b949
commit
8cd3c03702
3 changed files with 8 additions and 3 deletions
|
|
@ -14,10 +14,10 @@ export function ChartTooltip({
|
||||||
<FloatingTooltip>
|
<FloatingTooltip>
|
||||||
<Column
|
<Column
|
||||||
gap="3"
|
gap="3"
|
||||||
backgroundColor="surface-inverted"
|
|
||||||
color="inverted"
|
color="inverted"
|
||||||
padding="4"
|
padding="4"
|
||||||
borderRadius="md"
|
borderRadius="md"
|
||||||
|
style={{ backgroundColor: 'rgba(0,0,0,0.8)' }}
|
||||||
>
|
>
|
||||||
{title}
|
{title}
|
||||||
<Row alignItems="center">
|
<Row alignItems="center">
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ export function WeeklyTraffic({ websiteId }: { websiteId: string }) {
|
||||||
/>
|
/>
|
||||||
</Row>
|
</Row>
|
||||||
</Focusable>
|
</Focusable>
|
||||||
<Tooltip placement="right">
|
<Tooltip placement="right" style={{ backgroundColor: 'rgba(0,0,0,0.8)' }}>
|
||||||
<Text size="base">{`${t(labels.visitors)}: ${count}`}</Text>
|
<Text size="base">{`${t(labels.visitors)}: ${count}`}</Text>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,12 @@ export function WorldMap({ websiteId, data, ...props }: WorldMapProps) {
|
||||||
</ComposableMap>
|
</ComposableMap>
|
||||||
{tooltip && (
|
{tooltip && (
|
||||||
<FloatingTooltip>
|
<FloatingTooltip>
|
||||||
<Box backgroundColor="surface-inverted" color="inverted" padding borderRadius="md">
|
<Box
|
||||||
|
style={{ backgroundColor: 'rgba(0,0,0,0.8)' }}
|
||||||
|
color="inverted"
|
||||||
|
padding
|
||||||
|
borderRadius="md"
|
||||||
|
>
|
||||||
{tooltip}
|
{tooltip}
|
||||||
</Box>
|
</Box>
|
||||||
</FloatingTooltip>
|
</FloatingTooltip>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue