From 667aa79d52baa1ebe7597189afc3e9bf30f9d342 Mon Sep 17 00:00:00 2001 From: Takayama Fumihiko Date: Sat, 25 Jan 2025 23:39:56 +0900 Subject: [PATCH] Update SettingsMainView layout --- .../swift/Views/Settings/SettingsMainView.swift | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/ShowyEdge/swift/Views/Settings/SettingsMainView.swift b/src/ShowyEdge/swift/Views/Settings/SettingsMainView.swift index 48cedf4..0623288 100644 --- a/src/ShowyEdge/swift/Views/Settings/SettingsMainView.swift +++ b/src/ShowyEdge/swift/Views/Settings/SettingsMainView.swift @@ -46,8 +46,8 @@ struct SettingsMainView: View { GroupBox(label: Text("Color")) { VStack(alignment: .leading, spacing: 10.0) { - ScrollView { - if $userSettings.customizedLanguageColors.count > 0 { + if $userSettings.customizedLanguageColors.count > 0 { + ScrollView { Grid(alignment: .leading) { ForEach($userSettings.customizedLanguageColors) { $languageColor in GridRow { @@ -95,12 +95,11 @@ struct SettingsMainView: View { } } } - } else { - Text(currentInputSourceLocalizedName) - .foregroundColor(.gray) - } + }.frame(height: 200) + } else { + Text(currentInputSourceLocalizedName) + .foregroundColor(.gray) } - .frame(height: 200) Button( action: {