From 82db269acde32306c0fda7b53c181e95cef7b76e Mon Sep 17 00:00:00 2001 From: 1024jp <1024jp@wolfrosch.com> Date: Thu, 15 Feb 2024 18:40:32 +0900 Subject: [PATCH] Tweak ThemeEditorView --- CotEditor/Sources/ThemeEditorView.swift | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CotEditor/Sources/ThemeEditorView.swift b/CotEditor/Sources/ThemeEditorView.swift index cd6a6f9e9..9a2d639cd 100644 --- a/CotEditor/Sources/ThemeEditorView.swift +++ b/CotEditor/Sources/ThemeEditorView.swift @@ -186,8 +186,8 @@ struct ThemeEditorView: View { } label: { Image(systemName: "info") .symbolVariant(.circle) - .accessibilityLabel("Show theme file information") } + .accessibilityLabel("Show theme file information") .help("Show theme file information") .popover(isPresented: self.$isMetadataPresenting, arrowEdge: .trailing) { 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) } } - .controlSize(.small) .padding(10) - .frame(width: 300) + .controlSize(.small) + .frame(width: 300, alignment: .leading) } @@ -292,7 +292,6 @@ private struct ThemeMetadataView: View { Text(text.wrappedValue) .foregroundColor(.label) .textSelection(.enabled) - .frame(maxWidth: .infinity, alignment: .leading) } } }