💄 Fix charts icon clipped on the right edge of the map (#322)

This commit is contained in:
Eliott C. 2026-08-11 22:56:33 +02:00 • committed by GitHub
commit 155e032569
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 22 additions and 3197 deletions

1789
old-ui/pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

1389
viewer/pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

View file

@ -24,7 +24,7 @@
class="line-chart-icon"
v-b-modal.chart-button
role="button"
:transform="`translate(${right - 15}, -10) scale(0.0043)`"
:transform="`translate(${right - 15.5}, -10) scale(0.0043)`"
>
<path
d="M32,480h480v32H0V0h32v96h32v32H32v64h32v32H32v64h32v32H32v64h32v32H32V480z M96,336c0-26.5,21.484-48,48-48

View file

@ -13,7 +13,6 @@ import {
ChartConfiguration,
ChartDataset,
ChartEvent,
ChartType as ChartJsChartType,
LegendItem,
LegendOptions,
TooltipItem,
@ -148,7 +147,7 @@ function newLegendOptions(provider: (index: number) => string) {
let hovering = false;
const tooltip = document.getElementById("tooltip");
const legendOptions: DeepPartial<LegendOptions<ChartJsChartType>> = {
const legendOptions: DeepPartial<LegendOptions> = {
onHover(event: ChartEvent, legendItem: LegendItem) {
const description = provider(legendItem.datasetIndex);
if (hovering || description == null) {