mirror of
https://github.com/utmapp/UTM.git
synced 2026-10-12 02:24:01 +00:00
Fix DetailedSection's description framing
This commit is contained in:
@@ -31,10 +31,14 @@ struct DetailedSection<Content>: View where Content: View {
|
||||
#if os(macOS)
|
||||
Section(content: {
|
||||
content
|
||||
Text(description)
|
||||
.lineLimit(nil)
|
||||
.font(.footnote)
|
||||
.padding(.bottom)
|
||||
VStack {
|
||||
Text(description)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
.lineLimit(nil)
|
||||
.font(.footnote)
|
||||
.padding(.bottom)
|
||||
}
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
}, header: { Text(titleKey) })
|
||||
#else
|
||||
Section(content: { content }, header: { Text(titleKey) }, footer: { Text(description) })
|
||||
|
||||
Reference in New Issue
Block a user