From 700c169e55518cdd359abce843068b273bfe27b9 Mon Sep 17 00:00:00 2001 From: neon443 <69979447+neon443@users.noreply.github.com> Date: Sat, 16 Aug 2025 10:31:37 +0100 Subject: [PATCH] remove hiding hte label if its empty --- ShhShell/Views/Misc/HostSymbolPreview.swift | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/ShhShell/Views/Misc/HostSymbolPreview.swift b/ShhShell/Views/Misc/HostSymbolPreview.swift index b8c870f..5c3cc62 100644 --- a/ShhShell/Views/Misc/HostSymbolPreview.swift +++ b/ShhShell/Views/Misc/HostSymbolPreview.swift @@ -15,10 +15,7 @@ struct HostSymbolPreview: View { var body: some View { if small { HStack(alignment: .center, spacing: 5) { - if !label.isEmpty { - Text(label) - .font(.headline) - } + Text(label) symbol.image .resizable().scaledToFit() .symbolRenderingMode(.monochrome) @@ -32,11 +29,9 @@ struct HostSymbolPreview: View { symbol.image .resizable().scaledToFit() .symbolRenderingMode(.monochrome) - if !label.isEmpty { - Text(label) - .font(.headline) - .offset(symbol.offset) - } + Text(label) + .font(.headline) + .offset(symbol.offset) } } }