Quellcode durchsuchen

Fix Comment Writer body field height so it stays compact and scrolls for longer text.

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 vor 1 Monat
Ursprung
Commit
810fc2a527

+ 1 - 1
Reddit App/Views/CommentWriterView.swift

@@ -382,7 +382,7 @@ struct CommentWriterView: View {
                     label: "Comment Body",
                     placeholder: "Generate a comment or write your own…",
                     text: $viewModel.draft.body,
-                    minHeight: 220
+                    minHeight: 190
                 )
             }
 

+ 1 - 1
Reddit App/Views/Components/PostGeneratorComponents.swift

@@ -109,7 +109,7 @@ struct PostFormTextEditor: View {
                 text: $text,
                 placeholder: placeholder
             )
-            .frame(minHeight: minHeight)
+            .frame(height: minHeight)
             .background(AppTheme.panelBackground)
             .clipShape(RoundedRectangle(cornerRadius: 8))
             .overlay(