fix: search palette triggers highlight, restore CSS keyframe blink

- SearchPalette now calls requestHighlight(id) before goto()
- Restore smooth CSS @keyframes cardHighlight (0%→none, 25%→glow,
  75%→glow, 100%→none) instead of JS interval pulse
- Inline style.animation overrides class-based stagger animation;
  cleanup sets animation:'none' (inline beats class, no stagger replay)
This commit is contained in:
2026-03-22 00:13:53 +03:00
parent 88e21e41e2
commit 86115f5c75
3 changed files with 25 additions and 45 deletions
@@ -2,6 +2,7 @@
import { goto } from '$app/navigation';
import { t } from '$lib/i18n';
import MdiIcon from './MdiIcon.svelte';
import { requestHighlight } from '$lib/highlight';
import {
fetchAllCaches,
providersCache,
@@ -140,6 +141,7 @@
function navigateTo(result: SearchResult) {
closePalette();
requestHighlight(result.id);
goto(result.href);
}