Skip to content

Commit cd8ace0

Browse files
committed
feat: remove gap and margin in Sender
1 parent 4e2905b commit cd8ace0

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changes/optimize-sender-input.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@matechat/react": patch:feat
3+
---
4+
5+
Remove gap and margin between textarea and footer in `Sender` component.

src/sender.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export function Sender({
149149
data-slot="sender"
150150
className={twMerge(
151151
clsx(
152-
"flex flex-col items-center gap-4 border border-gray-200 rounded-2xl shadow-sm transition-all duration-300 hover:shadow-md focus-within:ring-2 focus-within:ring-blue-500 focus-within:border-blue-500",
152+
"flex flex-col items-center border border-gray-200 rounded-2xl shadow-sm transition-all duration-300 hover:shadow-md focus-within:ring-2 focus-within:ring-blue-500 focus-within:border-blue-500",
153153
className,
154154
),
155155
)}
@@ -161,8 +161,8 @@ export function Sender({
161161
onChange={(e) => setMessage(e.target.value)}
162162
onKeyDown={handleKeyDown}
163163
placeholder={placeholder}
164-
className="w-full py-4 px-4 border-0 rounded-2xl resize-none focus:ring-0 focus:outline-none text-gray-700 placeholder-gray-400"
165-
rows={1}
164+
className="w-full pt-4 px-4 border-0 rounded-2xl resize-none focus:ring-0 focus:outline-none text-gray-700 placeholder-gray-400"
165+
rows={2}
166166
/>
167167
<div className="flex items-center justify-between w-full px-4 py-2">
168168
<div className="flex items-center gap-2">

0 commit comments

Comments
 (0)