From 586179c281df7dbc4952e34a166d4e87f0feb66d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jezer=20Mej=C3=ADa?= Date: Thu, 3 Nov 2022 19:21:40 -0600 Subject: [PATCH] Fix DetailedSection's description framing --- Platform/Shared/DetailedSection.swift | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Platform/Shared/DetailedSection.swift b/Platform/Shared/DetailedSection.swift index 05e01b84..676aa618 100644 --- a/Platform/Shared/DetailedSection.swift +++ b/Platform/Shared/DetailedSection.swift @@ -31,10 +31,14 @@ struct DetailedSection: 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) })