Skip to content

Commit

Permalink
Fix charts tooltip indicator (#23) (#25)
Browse files Browse the repository at this point in the history
* Fix charts tooltip indicator

* Bump micromatch from 4.0.7 to 4.0.8 in /assets (#20)
  • Loading branch information
lalabuy948 authored Oct 17, 2024
1 parent f9dcb6f commit 4f6f41f
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
7 changes: 3 additions & 4 deletions assets/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/react/components/DeviceChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function DeviceChart({
<ChartTooltipContent
className="w-[150px]"
hideLabel
indicator="dashed"
indicator="dot"
/>
}
/>
Expand Down
2 changes: 1 addition & 1 deletion assets/react/components/PopularChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export function PopularChart({
<ChartTooltip
cursor={false}
content={
<ChartTooltipContent className="w-[200px]" indicator="line" />
<ChartTooltipContent className="w-[200px]" indicator="dot" />
}
/>
<Bar
Expand Down
1 change: 1 addition & 0 deletions assets/react/components/RequestsChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export function RequestsChart({
<ChartTooltipContent
className="w-[170px]"
nameKey="views"
indicator="dot"
labelFormatter={(value) => {
return new Date(value).toLocaleDateString("en-US", {
month: "short",
Expand Down
2 changes: 1 addition & 1 deletion assets/react/components/ResChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function ResChart({
<ChartTooltip
cursor={false}
content={
<ChartTooltipContent className="w-[175px]" indicator="line" />
<ChartTooltipContent className="w-[175px]" indicator="dot" />
}
/>
<Bar
Expand Down
2 changes: 1 addition & 1 deletion assets/react/components/StatusChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export function StatusChart({
...(interval === "hour" && { hour: "numeric" }),
});
}}
indicator="dashed"
indicator="dot"
/>
}
/>
Expand Down
2 changes: 1 addition & 1 deletion assets/react/components/VisitsChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export function VisitsChart({
...(interval === "hour" && { hour: "numeric" }),
});
}}
indicator="dashed"
indicator="dot"
/>
}
/>
Expand Down
2 changes: 1 addition & 1 deletion config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Config
config :phoenix_analytics, duckdb_path: System.get_env("DUCKDB_PATH") || "analytics.duckdb"

config :esbuild, :version, "0.17.11"
config :tailwind, :version, "3.2.7"
config :tailwind, :version, "3.4.13"

# Configure esbuild (the version is required)
config :esbuild,
Expand Down
2 changes: 1 addition & 1 deletion priv/static/assets/app.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion priv/static/assets/app.js

Large diffs are not rendered by default.

0 comments on commit 4f6f41f

Please sign in to comment.