From 1c97870e13255321ac4aa363fb7d5eee3a067fcc Mon Sep 17 00:00:00 2001 From: tisfeng Date: Tue, 5 Mar 2024 22:23:18 +0800 Subject: [PATCH] perf(UI): adjust settings page width --- Easydict/NewApp/View/SettingView/SettingView.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Easydict/NewApp/View/SettingView/SettingView.swift b/Easydict/NewApp/View/SettingView/SettingView.swift index 28af3b346..c5033557c 100644 --- a/Easydict/NewApp/View/SettingView/SettingView.swift +++ b/Easydict/NewApp/View/SettingView/SettingView.swift @@ -73,8 +73,8 @@ struct SettingView: View { window.standardWindowButton(.zoomButton)?.isEnabled = false // Keep the settings page windows all the same width to avoid strange animations. - let maxWidth = 780 - let height = switch selection { + let maxWidth = 820.0 + let height: Double = switch selection { case .disabled: 500 case .advanced: @@ -84,7 +84,7 @@ struct SettingView: View { case .about: 450 default: - maxWidth - 110 + maxWidth * 0.82 } let newSize = CGSize(width: maxWidth, height: height)