PrefUI // Fix tab page height problems.
This commit is contained in:
parent
35edeaf6e0
commit
4e9faa70c5
|
@ -19,6 +19,7 @@ extension PrefUITabs {
|
|||
struct VwrPrefPage: View {
|
||||
@State var tabType: PrefUITabs
|
||||
var body: some View {
|
||||
Group {
|
||||
switch tabType {
|
||||
case .tabGeneral: VwrPrefPaneGeneral()
|
||||
case .tabCandidates: VwrPrefPaneCandidates()
|
||||
|
@ -30,6 +31,7 @@ struct VwrPrefPage: View {
|
|||
case .tabKeyboard: VwrPrefPaneKeyboard()
|
||||
case .tabDevZone, .tabExperience: VwrPrefPaneDevZone()
|
||||
}
|
||||
}.fixedSize()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -37,8 +37,8 @@ struct VwrPrefPaneGeneral: View {
|
|||
|
||||
var body: some View {
|
||||
ScrollView {
|
||||
VStack {
|
||||
_VSpacer(minHeight: 24)
|
||||
SSPreferences.Container(contentWidth: CtlPrefUI.contentWidth) {
|
||||
SSPreferences.Section(title: "") {
|
||||
Text(
|
||||
"\u{2022} "
|
||||
+ NSLocalizedString(
|
||||
|
@ -50,10 +50,8 @@ struct VwrPrefPaneGeneral: View {
|
|||
comment: ""
|
||||
)
|
||||
)
|
||||
.preferenceDescription()
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
}.frame(maxWidth: CtlPrefUI.contentWidth)
|
||||
SSPreferences.Container(contentWidth: CtlPrefUI.contentWidth) {
|
||||
.preferenceDescription().prefDescriptionWidthLimited()
|
||||
}
|
||||
SSPreferences.Section(label: { Text(LocalizedStringKey("UI Language:")) }) {
|
||||
Picker(
|
||||
LocalizedStringKey("Follow OS settings"),
|
||||
|
|
Loading…
Reference in New Issue