mirror of
https://github.com/neon443/ShhShell.git
synced 2026-11-30 20:54:51 +00:00
remove hiding hte label if its empty
This commit is contained in:
1 parent
d7f498c164
commit
700c169e55
1 file changed
+4
-9
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||