Skip to content

Commit

Permalink
fix bug: some text in general settings is truncated
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklandrin committed Jan 13, 2024
1 parent 644b834 commit 69b3251
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions OnlySwitch/View/Settings/General/GeneralView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ struct GeneralView: View, EmailProvider {
}.frame(height:Layout.generalSettingItemHeight)

//Recommendation
Toggle(isOn: $generalVM.showAds, label: {Text("Show More Apps".localized())})
Toggle(isOn: $generalVM.showAds) {
Text("Show More Apps".localized())
}
.frame(height: Layout.generalSettingItemHeight)

//menubar icons
Expand Down Expand Up @@ -142,8 +144,8 @@ struct GeneralView: View, EmailProvider {
ProgressView()
.progressViewStyle(.circular)
.controlSize(.small)
.isHidden(!generalVM.showProgress,remove: true)
}.frame(height:Layout.generalSettingItemHeight)
.isHidden(!generalVM.showProgress, remove: true)
}.frame(height: Layout.generalSettingItemHeight)


//clear cache
Expand Down Expand Up @@ -173,7 +175,7 @@ struct GeneralView: View, EmailProvider {
}
}
}
.frame(width: 400)
.frame(minWidth: 500)
.onAppear{
generalVM.showCacheSize()
}
Expand Down

0 comments on commit 69b3251

Please sign in to comment.