From a6c4ac724ee2cb91cd999837dd0598d070bd8282 Mon Sep 17 00:00:00 2001 From: Maruf Bepary Date: Thu, 11 Dec 2025 11:37:05 +0100 Subject: [PATCH] Improved design of the comment intput - Instead of using overlay for the action section the component is split into 2 sections - The larger section at the top is for the text area - The button section is for the actions - Added clear button - Added icons --- components/posts/comments/CommentInput.tsx | 92 +++++++++++++--------- 1 file changed, 56 insertions(+), 36 deletions(-) diff --git a/components/posts/comments/CommentInput.tsx b/components/posts/comments/CommentInput.tsx index 6ebb2a3..367bf32 100644 --- a/components/posts/comments/CommentInput.tsx +++ b/components/posts/comments/CommentInput.tsx @@ -1,6 +1,7 @@ import ProfileModal from "@/components/modal/profile/ProfileModal"; import AuthButtons from "@/components/navbar/right-content/AuthButtons"; -import { Flex, Textarea, Button, Text, Stack } from "@chakra-ui/react"; +import { Flex, Textarea, Button, Text, Stack, Icon } from "@chakra-ui/react"; +import { LuSend, LuTrash } from "react-icons/lu"; import { User } from "firebase/auth"; import React, { useState } from "react"; @@ -73,45 +74,64 @@ const CommentInput: React.FC = ({ -