fix(settings): stop non-About sections from vertically centering
.leading as an Alignment means horizontally-leading but vertically centered, not top-left — the minHeight fix for centering About ended up vertically centering every other section too inside that same tall box. .topLeading is what was actually meant; About still centers correctly since its own .frame(maxHeight: .infinity, alignment: .center) fills and self-centers within whatever space it's given regardless.
This commit is contained in:
@@ -49,7 +49,7 @@ struct SettingsView: View {
|
||||
ScrollView {
|
||||
sectionDetail
|
||||
.padding(28)
|
||||
.frame(maxWidth: .infinity, minHeight: geometry.size.height, alignment: .leading)
|
||||
.frame(maxWidth: .infinity, minHeight: geometry.size.height, alignment: .topLeading)
|
||||
}
|
||||
}
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
|
||||
Reference in New Issue
Block a user