From 9a73ad80dde82af55f1a07f916270fec1e28fee9 Mon Sep 17 00:00:00 2001 From: KoloMl Date: Fri, 3 Jan 2025 05:54:06 +0400 Subject: [PATCH] Skip blocks if they're not filled up --- src/components/features/GroupView.svelte | 44 +++++++++++++----------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/src/components/features/GroupView.svelte b/src/components/features/GroupView.svelte index 597016e..e984d2a 100644 --- a/src/components/features/GroupView.svelte +++ b/src/components/features/GroupView.svelte @@ -16,26 +16,30 @@ Group Name:
{group.settings.name}
-
- Tags: - -
- {#each sortedTagsList as tagName} - {tagName} - {/each} -
-
-
-
- Prefixes: - -
- {#each sortedPrefixes as prefixName} - {prefixName}* - {/each} -
-
-
+{#if sortedTagsList.length} +
+ Tags: + +
+ {#each sortedTagsList as tagName} + {tagName} + {/each} +
+
+
+{/if} +{#if sortedPrefixes.length} +
+ Prefixes: + +
+ {#each sortedPrefixes as prefixName} + {prefixName}* + {/each} +
+
+
+{/if}