fix(settings): correct MCP server row layout

This commit is contained in:
Kaede Akino committed 2026-09-28 00:55:13 +08:00
1 parent 63b94e3bc7
commit 93338ed22b
1 file changed
+4 -1
@@ -36,6 +36,7 @@ struct MCPServerSettings: View {
set: { server.setPort($0) }
), format: .number.grouping(.never)
).lineLimit(1)
.labelsHidden()
.frame(width: 100)
.multilineTextAlignment(.trailing)
}
@@ -47,7 +48,9 @@ struct MCPServerSettings: View {
}
Section(AppStrings.Settings.bearerToken.swiftUIKey) {
LabeledContent(AppStrings.Settings.token.swiftUIKey) {
HStack(alignment: .center) {
Text(AppStrings.Settings.token)
Spacer()
HStack {
Text(showsToken ? displayToken : String(repeating: "•", count: 24))
.font(.system(.body, design: .monospaced))