mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-03 19:35:15 -05:00
Update ToolAccordion and MessageContent components for improved layout and responsiveness
This commit is contained in:
@@ -38,9 +38,8 @@ export function ToolAccordion({
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
"mt-2 rounded-2xl border bg-background px-3 py-2",
|
||||
"mt-2 w-full rounded-2xl border bg-background px-3 py-2",
|
||||
className,
|
||||
|
||||
)}
|
||||
>
|
||||
<button
|
||||
|
||||
@@ -43,7 +43,8 @@ export const MessageContent = ({
|
||||
}: MessageContentProps) => (
|
||||
<div
|
||||
className={cn(
|
||||
"is-user:dark flex w-fit min-w-0 max-w-full flex-col gap-2 overflow-hidden text-sm",
|
||||
"is-user:dark flex w-full min-w-0 max-w-full flex-col gap-2 overflow-hidden text-sm",
|
||||
"group-[.is-user]:w-fit",
|
||||
"group-[.is-user]:ml-auto group-[.is-user]:rounded-lg group-[.is-user]:bg-neutral-100 group-[.is-user]:px-4 group-[.is-user]:py-3 group-[.is-user]:text-neutral-950 dark:group-[.is-user]:bg-neutral-800 dark:group-[.is-user]:text-neutral-50",
|
||||
"group-[.is-assistant]:text-neutral-950 dark:group-[.is-assistant]:text-neutral-50",
|
||||
className,
|
||||
|
||||
Reference in New Issue
Block a user