Skip to content

Commit d78b009

Browse files
authored
Fix chain-of-thought dropdown arrow position (#325)
* make chain-of-thought dropdown arrow responsive by removing max-w-prose * add patch changeset for chain-of-thoughts dropdown arrow fix
1 parent 6f75fdc commit d78b009

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.changeset/real-experts-leave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"ai-elements": patch
3+
---
4+
5+
Fix chain-of-thoughts dropdown arrow alignment by replacing `max-w-prose` with `w-full` for proper responsive layout.

packages/elements/src/chain-of-thought.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,7 @@ export const ChainOfThought = memo(
6464

6565
return (
6666
<ChainOfThoughtContext.Provider value={chainOfThoughtContext}>
67-
<div
68-
className={cn("not-prose max-w-prose space-y-4", className)}
69-
{...props}
70-
>
67+
<div className={cn("not-prose w-full space-y-4", className)} {...props}>
7168
{children}
7269
</div>
7370
</ChainOfThoughtContext.Provider>

0 commit comments

Comments
 (0)