From 4634e5d0d75236d1f41e200d842954a81c6ab117 Mon Sep 17 00:00:00 2001 From: TraceLumen Date: Tue, 3 Nov 2026 18:33:52 +0300 Subject: [PATCH] add graph and card fonts test updates --- src/lib/common/ui/Node.svelte | 24 ++- src/lib/common/ui/SubjectGraph.svelte | 202 ++++++++++++++++++++++ src/lib/pages/bionyx/CommunityCard.svelte | 55 +++--- src/lib/pages/bionyx/OsCard.svelte | 13 +- src/lib/pages/bionyx/RankRadar.svelte | 38 +++- 5 files changed, 278 insertions(+), 54 deletions(-) create mode 100644 src/lib/common/ui/SubjectGraph.svelte diff --git a/src/lib/common/ui/Node.svelte b/src/lib/common/ui/Node.svelte index 5916703..ce51fa8 100644 --- a/src/lib/common/ui/Node.svelte +++ b/src/lib/common/ui/Node.svelte @@ -2,14 +2,12 @@ import { slide } from 'svelte/transition'; // open — bindable: родитель может раскрыть пункт программно (например, тизером) let { label, icon = undefined, hint = undefined, open = $bindable(false), children } = $props(); - // есть вложенный контент → пункт раскрывающийся, нет → обычная строка const expandable = $derived(children !== undefined); {#if expandable}