Skip to content

Commit 1708448

Browse files
committed
Remove gap between tooltip items and increase gap between label and value
1 parent 53b1383 commit 1708448

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/lib/components/charts/FeaturesLineChart.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@
7373
{formatDate(x(data))}
7474
</Tooltip.Header>
7575

76-
<Tooltip.List {...tooltipProps.list} class="px-1 pb-1">
76+
<Tooltip.List {...tooltipProps.list} class="px-1 pb-1 gap-y-0">
7777
{#each visibleSeries as s}
7878
{@const seriesTooltipData = s.data ? findRelatedData(s.data, data, x) : data}
7979
{@const valueAccessor = accessor(s.value ?? (s.data ? (y as unknown) : s.key))}
8080
{@const value = seriesTooltipData ? valueAccessor(seriesTooltipData) : null}
8181

8282
<button
83-
class="col-span-full grid grid-cols-[1fr,auto] gap-4 hover:bg-neutral-400 py-2 px-3 rounded"
83+
class="col-span-full grid grid-cols-[1fr,auto] gap-6 hover:bg-neutral-400 py-2 px-3 rounded"
8484
onclick={() => onitemclick?.({ series: s, data: seriesTooltipData, value })}
8585
>
8686
<Tooltip.Item

0 commit comments

Comments
 (0)