Skip to content

Commit

Permalink
perf: adjust settings page window size
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Feb 1, 2024
1 parent 4fd55ee commit 8c567c5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Easydict/NewApp/View/SettingView/SettingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,13 @@ struct SettingView: View {
window.standardWindowButton(.zoomButton)?.isEnabled = false

// Keep the settings page windows all the same width to avoid strange animations.
let maxWidth = 650
let maxWidth = 750
let height = switch selection {
case .general:
maxWidth
case .service, .disabled:
maxWidth - 100
case .service:
600
case .disabled:
500
case .privacy:
320
Expand Down

0 comments on commit 8c567c5

Please sign in to comment.