diff --git a/app/src/components/CommentBox.tsx b/app/src/components/CommentBox.tsx index 30d00ad..9bcc89d 100644 --- a/app/src/components/CommentBox.tsx +++ b/app/src/components/CommentBox.tsx @@ -157,24 +157,28 @@ export function CommentBox({ onChange={(e) => onEditingTextChange?.(e.target.value)} disabled={isBusy} rows={2} + maxLength={2000} className="w-full text-[12.5px] text-zinc-800 bg-white border border-zinc-200 rounded-lg px-3 py-2.5 focus:outline-none focus:ring-4 focus:ring-zinc-800/5 focus:border-zinc-400 transition resize-none" /> -
- - +
+ {editingText.length}/2000 +
+ + +
) : ( diff --git a/app/src/pages/admin/AdminPostView.tsx b/app/src/pages/admin/AdminPostView.tsx index ee4bd3a..35c3fef 100644 --- a/app/src/pages/admin/AdminPostView.tsx +++ b/app/src/pages/admin/AdminPostView.tsx @@ -905,13 +905,16 @@ export function AdminPostView() { ? 'Add a comment and select an action below...' : 'No actions available.'} rows={3} + maxLength={2000} className="w-full text-[13px] text-zinc-800 placeholder-zinc-400 bg-transparent px-4 py-3.5 resize-none focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed" /> {/* Bottom Toolbar */}
- + Comment & Update Status + · + {commentText.length}/2000 {/* Action buttons */} diff --git a/app/src/pages/post/CentreHeadPost.tsx b/app/src/pages/post/CentreHeadPost.tsx index 25fa78d..4f84210 100644 --- a/app/src/pages/post/CentreHeadPost.tsx +++ b/app/src/pages/post/CentreHeadPost.tsx @@ -118,7 +118,10 @@ export function CentreHeadPost() {

Title & Description

- +
+ + {formData.title.length}/50 +
- +
+ + {formData.description.length}/5000 +