From 6b6ba516c05c5ec50b1d02b91afa96beb0e46e43 Mon Sep 17 00:00:00 2001 From: farfromrefug Date: Wed, 11 Dec 2024 17:37:52 +0100 Subject: [PATCH] fix: hourly chart popover now drown "on top" so that you always see the full popover. Should also fix the popover not hiding --- app/components/HourlyChartView.svelte | 40 +++++++++++++++++++++++---- app/components/WeatherPage.svelte | 3 +- app/services/weatherData.ts | 29 ++++++++++--------- app/utils/ui/index.common.ts | 4 ++- 4 files changed, 55 insertions(+), 21 deletions(-) diff --git a/app/components/HourlyChartView.svelte b/app/components/HourlyChartView.svelte index 3aeb7978..0b75524f 100644 --- a/app/components/HourlyChartView.svelte +++ b/app/components/HourlyChartView.svelte @@ -7,6 +7,7 @@ import { LimitLine } from '@nativescript-community/ui-chart/components/LimitLine'; import { XAxisPosition } from '@nativescript-community/ui-chart/components/XAxis'; import { CombinedData } from '@nativescript-community/ui-chart/data/CombinedData'; + import type HourlyPopover__SvelteComponent_ from '~/components/HourlyPopover.svelte'; import { LineData } from '@nativescript-community/ui-chart/data/LineData'; import { LineDataSet, Mode } from '@nativescript-community/ui-chart/data/LineDataSet'; import { ScatterData } from '@nativescript-community/ui-chart/data/ScatterData'; @@ -29,7 +30,7 @@ import dayjs from 'dayjs'; import { onDestroy, onMount } from 'svelte'; import { iconService } from '~/services/icon'; - import { WeatherProps, appPaint, convertWeatherValueToUnit, getWeatherDataColor, getWeatherDataTitle, weatherDataService } from '~/services/weatherData'; + import { WeatherProps, appPaint, convertWeatherValueToUnit, getWeatherDataColor, getWeatherDataTitle, showHourlyPopover, weatherDataService } from '~/services/weatherData'; // import { fade } from '@shared/utils/svelte/ui'; import { generateGradient, loadImage } from '~/utils/utils.common'; @@ -59,6 +60,7 @@