🎥 Make videos programmatically with React
style(tp2mg): improve ChatSidebar responsive layout and spacing
ASchwadcc4d19ded293
diff --git a/packages/template-prompt-to-motion-graphics/src/components/ChatSidebar/ChatInput.tsx b/packages/template-prompt-to-motion-graphics/src/components/ChatSidebar/ChatInput.tsxindex 12174e45e5..474ebc877b 100644--- a/packages/template-prompt-to-motion-graphics/src/components/ChatSidebar/ChatInput.tsx+++ b/packages/template-prompt-to-motion-graphics/src/components/ChatSidebar/ChatInput.tsx@@ -104,7 +104,7 @@ export function ChatInput({const canCapture = Component && !isLoading && !isCapturing && canAddMore;return (- <div className="p-4">+ <div className="px-12 pt-4 pb-8"><form onSubmit={handleSubmit}><divclassName={`bg-background-elevated rounded-xl border p-3 transition-colors ${diff --git a/packages/template-prompt-to-motion-graphics/src/components/ChatSidebar/ChatSidebar.tsx b/packages/template-prompt-to-motion-graphics/src/components/ChatSidebar/ChatSidebar.tsxindex a8ac6b1e71..66a4b0fe86 100644--- a/packages/template-prompt-to-motion-graphics/src/components/ChatSidebar/ChatSidebar.tsx+++ b/packages/template-prompt-to-motion-graphics/src/components/ChatSidebar/ChatSidebar.tsx@@ -175,8 +175,10 @@ export const ChatSidebar = forwardRef<ChatSidebarRef, ChatSidebarProps>(return (<divclassName={cn(- "flex flex-col bg-background transition-all duration-300 shrink-0",- isCollapsed ? "w-12" : "w-[420px]",+ "flex flex-col bg-background transition-all duration-300",+ isCollapsed+ ? "w-12 shrink-0"+ : "w-full h-[40vh] min-[1000px]:h-auto min-[1000px]:w-[40%] min-[1000px]:min-w-[320px] min-[1000px]:max-w-[520px] shrink",)}>{isCollapsed ? (@@ -193,7 +195,7 @@ export const ChatSidebar = forwardRef<ChatSidebarRef, ChatSidebarProps>() : (<>{/* Header */}- <div className="flex items-start justify-between px-4 mb-3">+ <div className="flex items-start justify-between px-12 mb-3"><h2 className="text-sm font-medium text-muted-foreground">Assistant Chat</h2>@@ -228,7 +230,7 @@ export const ChatSidebar = forwardRef<ChatSidebarRef, ChatSidebarProps>(</div>{/* Messages */}- <div className="flex-1 overflow-y-auto px-4 pb-4 space-y-6">+ <div className="flex-1 overflow-y-auto px-12 pb-4 space-y-6">{messages.map((message) => (<ChatMessage key={message.id} message={message} />))}