Skip to content

Commit a091d2a

Browse files
committed
ui: fix: chat panel matching cloud opitons and bottom of cards
1 parent 14906b2 commit a091d2a

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

‎apps/web/components/chat-panel-input.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ export const ChatPanelInput = memo(function ChatPanelInput({
527527

528528
return (
529529
<div
530-
className="p-4 border-t bg-background flex-shrink-0 md:relative md:pb-4 min-h-[214px] md:min-h-0 absolute"
530+
className="p-2 pt-0 border-t bg-background flex-shrink-0 md:relative md:pb-4 min-h-[214px] md:min-h-0 absolute bottom-[5px]"
531531
style={{
532532
// On mobile, use sticky positioning and account for safe area
533533
// paddingBottom: isMobile ? 'max(1rem, env(safe-area-inset-bottom))' : undefined,
@@ -733,7 +733,7 @@ export const ChatPanelInput = memo(function ChatPanelInput({
733733
</div>
734734
</div>
735735
{/* Cloud row - new bottom row */}
736-
<div className="relative flex items-center gap-x-2 pt-2 border-t border-border/50">
736+
<div className="relative flex items-center gap-x-2 bg-background border-t-1 -m-2 p-2 pl-2">
737737
{/* Invisible overlay when panel is open - clicking it dismisses the panel */}
738738
{isCloudPanelOpen && (
739739
<div
@@ -747,7 +747,7 @@ export const ChatPanelInput = memo(function ChatPanelInput({
747747
size="sm"
748748
onClick={onCloudPanelOpen}
749749
className={cn(
750-
"flex-col items-center justify-center w-[65px] h-[60px]",
750+
"flex-col items-center justify-center w-[95px] h-[50px]",
751751
cloudEnabled
752752
? "bg-green-500/20 text-green-500 hover:bg-green-500/30 hover:text-green-400 border border-green-500/30"
753753
: "text-muted-foreground hover:text-foreground"

‎packages/chat/src/components/chat-panel.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export function ChatPanel({
183183
}, [projectId, sandboxId, userId])
184184

185185
return (
186-
<div className="flex flex-col border-r relative max-h-[calc(100vh-100px)] min-h-[calc(100vh-100px)] overflow-hidden">
186+
<div className="flex flex-col border-r relative overflow-hidden">
187187

188188
{/* Messages Container with Conversation (use-stick-to-bottom) */}
189189
{renderMessages({

‎packages/chat/src/components/message.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ const PureChatMessage = ({
187187

188188
return (
189189
<div
190-
className="group/message w-full pb-0"
190+
className="group/message w-full mb-[80px]"
191191
data-role={message.role}
192192
>
193193
<div

‎packages/chat/src/components/messages.tsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ const PureMessages = ({
106106
const hasAssistantResponse = messages.some(m => m.role === "assistant");
107107

108108
return (
109-
<div className="flex-1 flex flex-col min-h-0">
110-
<Conversation className="flex-1 overflow-y-auto min-h-0">
109+
<div className="flex-1 flex flex-col min-h-0 ">
110+
<Conversation className="flex-1 overflow-y-auto min-h-0 pb-[214px]">
111111
<ConversationContent
112112
className={contentClassName}
113113
style={{ maxHeight: maxHeight > 0 ? `${maxHeight}px` : undefined }}
@@ -145,6 +145,7 @@ const PureMessages = ({
145145
{/* Scroll button must be inside Conversation to access context */}
146146
<ConversationScrollButton />
147147
</Conversation>
148+
<div className="h-[240px] w-full bg-red-500 "/>
148149
</div>
149150
);
150151
};

0 commit comments

Comments
 (0)