From ce45e12d2f280f911eb88f98bf5c472d90aed351 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Mon, 16 Sep 2024 21:21:00 +0200 Subject: [PATCH] bugfixing tooltip for mobile users --- src/routes/stock-screener/+page.svelte | 46 ++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git a/src/routes/stock-screener/+page.svelte b/src/routes/stock-screener/+page.svelte index 1d99f5e1..3c873e85 100644 --- a/src/routes/stock-screener/+page.svelte +++ b/src/routes/stock-screener/+page.svelte @@ -7,6 +7,7 @@ import * as DropdownMenu from "$lib/components/shadcn/dropdown-menu/index.js"; import { Button } from "$lib/components/shadcn/button/index.js"; import * as HoverCard from "$lib/components/shadcn/hover-card/index.js"; + import Input from '$lib/components/Input.svelte'; //const userConfirmation = confirm('Unsaved changes detected. Leaving now will discard your strategy. Continue?'); @@ -22,6 +23,8 @@ let downloadWorker: Worker | undefined; let searchQuery = ''; let infoText = {}; + let tooltipTitle; + $: testList = []; @@ -217,8 +220,8 @@ $: allRows = Object?.entries(allRules) }); - -async function getInfoText(parameter) { +async function getInfoText(parameter, title) { + tooltipTitle = title; const cachedData = getCache(parameter, "getInfoText"); if (cachedData) { infoText = cachedData; @@ -1042,10 +1045,18 @@ function handleInput(event) {
{row?.label?.replace('[%]', '')} +
+ +
+ +
@@ -1606,6 +1618,34 @@ function handleInput(event) { + + + + + + + + + + + + {#if LoginPopup}