Skip to content

Commit af994ce

Browse files
committed
fix: Add placeholder space for last feature chart tooltip
1 parent b70d4c2 commit af994ce

File tree

1 file changed

+8
-2
lines changed
  • frontend/src/routes/joins/[slug]/observability/drift

1 file changed

+8
-2
lines changed

frontend/src/routes/joins/[slug]/observability/drift/+page.svelte

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import FeaturesLineChart from '$lib/components/charts/FeaturesLineChart.svelte';
1919
import PercentileLineChart from '$lib/components/charts/PercentileLineChart.svelte';
2020
import { barChartProps, pieChartProps, tooltipProps } from '$lib/components/charts/common';
21+
import { cn } from '$src/lib/utils';
2122
2223
const api = new Api();
2324
@@ -187,14 +188,19 @@
187188
<ObservabilityNavTabs />
188189

189190
<div>
190-
{#each data.joinTimeseries.items as group (group.name)}
191+
{#each data.joinTimeseries.items as group, i (group.name)}
191192
<CollapsibleSection
192193
title={group.name}
193194
size="small"
194195
bind:open={groupSectionStates[group.name]}
195196
>
196197
{#snippet collapsibleContent()}
197-
<div class="h-[274px]">
198+
<div
199+
class={cn(
200+
'h-[274px]',
201+
i === data.joinTimeseries.items.length - 1 && 'mb-[300px]' // Add extra space at bottom of page for tooltip
202+
)}
203+
>
198204
<FeaturesLineChart
199205
data={group.items}
200206
yDomain={metricTypeDomain}

0 commit comments

Comments
 (0)