Skip to content

Commit

Permalink
perf(UI): adjust settings page width
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Mar 5, 2024
1 parent 18668cf commit 1c97870
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Easydict/NewApp/View/SettingView/SettingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -84,7 +84,7 @@ struct SettingView: View {
case .about:
450
default:
maxWidth - 110
maxWidth * 0.82
}

let newSize = CGSize(width: maxWidth, height: height)
Expand Down

0 comments on commit 1c97870

Please sign in to comment.