Tweak ThemeEditorView

This commit is contained in:
1024jp 2024-02-15 18:40:32 +09:00
parent f96e9ddb06
commit 82db269acd

View File

@ -186,8 +186,8 @@ struct ThemeEditorView: View {
} label: { } label: {
Image(systemName: "info") Image(systemName: "info")
.symbolVariant(.circle) .symbolVariant(.circle)
.accessibilityLabel("Show theme file information")
} }
.accessibilityLabel("Show theme file information")
.help("Show theme file information") .help("Show theme file information")
.popover(isPresented: self.$isMetadataPresenting, arrowEdge: .trailing) { .popover(isPresented: self.$isMetadataPresenting, arrowEdge: .trailing) {
ThemeMetadataView(metadata: $theme.metadata, isEditable: !self.theme.isBundled) ThemeMetadataView(metadata: $theme.metadata, isEditable: !self.theme.isBundled)
@ -272,9 +272,9 @@ private struct ThemeMetadataView: View {
self.itemView("Description:", text: $metadata.description ?? "", lineLimit: 2...5) self.itemView("Description:", text: $metadata.description ?? "", lineLimit: 2...5)
} }
} }
.controlSize(.small)
.padding(10) .padding(10)
.frame(width: 300) .controlSize(.small)
.frame(width: 300, alignment: .leading)
} }
@ -292,7 +292,6 @@ private struct ThemeMetadataView: View {
Text(text.wrappedValue) Text(text.wrappedValue)
.foregroundColor(.label) .foregroundColor(.label)
.textSelection(.enabled) .textSelection(.enabled)
.frame(maxWidth: .infinity, alignment: .leading)
} }
} }
} }