2
0
Эх сурвалжийг харах

Fix DetailedSection's description framing

Jezer Mejía 2 жил өмнө
parent
commit
586179c281

+ 8 - 4
Platform/Shared/DetailedSection.swift

@@ -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) })