Skip to content

Commit 1469a39

Browse files
fix(ChatForm, MessageTable): enhance styling for input and button components
1 parent 94fc15e commit 1469a39

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/app/members/[userId]/chat/ChatForm.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ export default function ChatForm() {
5454
fullWidth
5555
placeholder="Type a message"
5656
variant="faded"
57+
classNames={{
58+
inputWrapper:
59+
"border border-default-300 data-[hover=true]:border-default-400 group-data-[focus=true]:border-primary",
60+
}}
5761
{...register("text")}
5862
isInvalid={!!errors.text}
5963
errorMessage={errors.text?.message}

src/app/messages/MessageTable.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,12 @@ export default function MessageTable({ initialMessages,
117117
</TableBody>
118118
</Table>
119119

120-
<div className="sticky bottom-0 pb-3 mr-3 text-right">
120+
<div className="sticky bottom-0 pb-3 px-3 flex justify-end">
121121
<Button
122122
color="default"
123+
variant="bordered"
124+
radius="md"
125+
className="border-2 border-sky-300 bg-sky-50 text-sky-800 font-semibold min-w-40 hover:bg-sky-100 hover:border-sky-400 focus-visible:ring-2 focus-visible:ring-sky-200 disabled:bg-default-100 disabled:border-default-200 disabled:text-default-400"
123126
isLoading={loadingMore}
124127
isDisabled={!hasMore}
125128
onClick={loadMore}

0 commit comments

Comments
 (0)