mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
remove hiding hte label if its empty
This commit is contained in:
@@ -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)
|
||||
}
|
||||
symbol.image
|
||||
.resizable().scaledToFit()
|
||||
.symbolRenderingMode(.monochrome)
|
||||
@@ -32,7 +29,6 @@ struct HostSymbolPreview: View {
|
||||
symbol.image
|
||||
.resizable().scaledToFit()
|
||||
.symbolRenderingMode(.monochrome)
|
||||
if !label.isEmpty {
|
||||
Text(label)
|
||||
.font(.headline)
|
||||
.offset(symbol.offset)
|
||||
@@ -40,7 +36,6 @@ struct HostSymbolPreview: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
HostSymbolPreview(symbol: HostSymbol.desktopcomputer, label: "lo0")
|
||||
|
||||
Reference in New Issue
Block a user