소스 검색

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

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 1 개월 전
부모
커밋
810fc2a527
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      Reddit App/Views/CommentWriterView.swift
  2. 1 1
      Reddit App/Views/Components/PostGeneratorComponents.swift

+ 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(