From 5b4d59175b6675fbe83e84b61a7966f2cf8d06b5 Mon Sep 17 00:00:00 2001 From: Peter Meier Date: Sat, 16 May 2026 15:18:07 +0200 Subject: [PATCH] =?UTF-8?q?Redesign=20SearchableTextBlock=20UI=20=E2=80=94?= =?UTF-8?q?=20stronger=20visual=20hierarchy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Green gradient header, white card with shadow, left-border accent on open accordion items, hover-visible copy button in summary row, lighter dividers. Co-Authored-By: Claude Sonnet 4.6 --- .../blocks/SearchableTextBlock.svelte | 100 ++++++++++-------- src/lib/iconify-mdi-subset.generated.json | 6 +- 2 files changed, 56 insertions(+), 50 deletions(-) diff --git a/src/lib/components/blocks/SearchableTextBlock.svelte b/src/lib/components/blocks/SearchableTextBlock.svelte index 2543fd0..3292d6a 100644 --- a/src/lib/components/blocks/SearchableTextBlock.svelte +++ b/src/lib/components/blocks/SearchableTextBlock.svelte @@ -159,45 +159,43 @@
-
- {#if block.title} -

- {block.title} -

- {/if} - {#if descriptionHtml} -
- {@html descriptionHtml} -
- {/if} -
+ {#if block.title || descriptionHtml} +
+ {#if block.title} +

+ {block.title} +

+ {/if} + {#if descriptionHtml} +
+ {@html descriptionHtml} +
+ {/if} +
+ {/if}
(searchQuery = (e.target as HTMLInputElement).value)} aria-label={t(T.searchable_text_search_aria)} @@ -205,7 +203,7 @@ {#if searchQuery}
{#if allTags.length > 0} -
-
+
+
{#if visibleFragments.length === 0} @@ -259,11 +257,11 @@ {/if}
-
+
{#each visibleFragments as fragment, i} -
+
@@ -272,11 +270,29 @@ searchQuery.trim(), )}
-
{#if fragment.tags.length > 0} @@ -284,13 +300,11 @@ {/if}
-
+
diff --git a/src/lib/iconify-mdi-subset.generated.json b/src/lib/iconify-mdi-subset.generated.json index b075eb1..476dc6a 100644 --- a/src/lib/iconify-mdi-subset.generated.json +++ b/src/lib/iconify-mdi-subset.generated.json @@ -24,6 +24,9 @@ "rss": { "body": "" }, + "chevron-left": { + "body": "" + }, "pencil-outline": { "body": "" }, @@ -57,9 +60,6 @@ "menu": { "body": "" }, - "chevron-left": { - "body": "" - }, "comment-outline": { "body": "" },