From cb9a0d50176e4cd961a4d8f5c82fe33337b68602 Mon Sep 17 00:00:00 2001 From: Alexander Platov Date: Fri, 18 Apr 2025 06:23:21 +0300 Subject: [PATCH] Smooth appearance of the tooltip (fixed twitching) (#8617) --- .../ui/src/components/TooltipInstance.svelte | 23 ++++++++++++++----- .../tests/documents/documents-content.spec.ts | 2 +- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/packages/ui/src/components/TooltipInstance.svelte b/packages/ui/src/components/TooltipInstance.svelte index e09cd3ede8..f5ec1135fb 100644 --- a/packages/ui/src/components/TooltipInstance.svelte +++ b/packages/ui/src/components/TooltipInstance.svelte @@ -21,6 +21,7 @@ import Component from './Component.svelte' import Label from './Label.svelte' import { capitalizeFirstLetter, formatKey } from '../utils' + import { testing } from '..' let tooltipHTML: HTMLElement let nubHTML: HTMLElement @@ -248,6 +249,7 @@ const hideTooltip = (): void => { if (tooltipHTML) options.visibility = 'hidden' + shown = false closeTooltip() } @@ -319,6 +321,7 @@ {#if $tooltip.component && $tooltip.kind !== 'submenu'}