misc: sidebar label alignment

This commit is contained in:
mrFq1
2023-09-13 09:24:45 +08:00
parent 08e4f626c6
commit 65ac522658

View File

@@ -11,10 +11,11 @@ struct SidebarLabel: View {
@State var iconName: String @State var iconName: String
var body: some View { var body: some View {
HStack { Label {
Text(item.rawValue)
} icon: {
Image(systemName: iconName) Image(systemName: iconName)
.foregroundColor(.accentColor) .foregroundColor(.accentColor)
Text(item.rawValue)
} }
} }
} }