Skip to content

Commit

Permalink
fix: @tailwindcss/forms input border (#700)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Aug 22, 2024
1 parent edb5a16 commit f8e2cf1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/small-clocks-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@assistant-ui/react": patch
---

fix: @tailwindcss/forms input border
2 changes: 1 addition & 1 deletion packages/react/src/styles/tailwindcss/thread.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
}

.aui-composer-input {
@apply placeholder:text-aui-muted-foreground size-full max-h-40 resize-none bg-transparent p-4 pr-12 text-sm outline-none;
@apply placeholder:text-aui-muted-foreground size-full max-h-40 resize-none border-none bg-transparent p-4 pr-12 text-sm outline-none;
}

.aui-composer-send,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const Composer: FC = () => {
autoFocus
placeholder="Write a message..."
rows={1}
className="placeholder:text-muted-foreground size-full max-h-40 resize-none bg-transparent p-4 pr-12 text-sm outline-none"
className="placeholder:text-muted-foreground size-full max-h-40 resize-none border-none bg-transparent p-4 pr-12 text-sm outline-none"
/>
<ThreadPrimitive.If running={false}>
<ComposerPrimitive.Send asChild>
Expand Down Expand Up @@ -138,7 +138,7 @@ const UserMessage: FC = () => {
const EditComposer: FC = () => {
return (
<ComposerPrimitive.Root className="bg-muted my-4 flex w-full max-w-2xl flex-col gap-2 rounded-xl">
<ComposerPrimitive.Input className="text-foreground flex h-8 w-full resize-none bg-transparent p-4 pb-0 outline-none" />
<ComposerPrimitive.Input className="text-foreground flex h-8 w-full resize-none border-none bg-transparent p-4 pb-0 outline-none" />

<div className="mx-3 mb-3 flex items-center justify-center gap-2 self-end">
<ComposerPrimitive.Cancel asChild>
Expand Down
2 changes: 1 addition & 1 deletion packages/shadcn-registry/registry/assistant-ui/thread.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const Composer: FC = () => {
autoFocus
placeholder="Write a message..."
rows={1}
className="placeholder:text-muted-foreground size-full max-h-40 resize-none bg-transparent p-4 pr-12 text-sm outline-none"
className="placeholder:text-muted-foreground size-full max-h-40 resize-none border-none bg-transparent p-4 pr-12 text-sm outline-none"
/>
<ComposerPrimitive.Send asChild>
<TooltipIconButton
Expand Down

0 comments on commit f8e2cf1

Please sign in to comment.