Add max width to text chats

This commit is contained in:
Alex Gleason committed 2025-12-03 01:51:29 -06:00
1 parent 0c42af082a
commit 300fd26268
2 files changed
+25 -23

No files matched your search

+1 -1
View File
@@ -117,7 +117,7 @@ export const ChatInput = memo(function ChatInput({
}, []);
return (
<div className="border-t p-4">
<div className="p-4">
{/* Chat Input Container */}
<div
className={`flex flex-col rounded-2xl border border-input bg-background shadow-sm focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2 transition-all ${
+24 -22
View File
@@ -572,7 +572,7 @@ export const ChatPane = forwardRef<ChatPaneRef, ChatPaneProps>(({
<div className="h-full flex flex-col relative">
<div className="flex-1 overflow-y-scroll overflow-x-hidden" ref={scrollAreaRef}>
<div className="p-4 space-y-4">
<div className={`p-4 space-y-4 ${isChat ? 'max-w-3xl mx-auto w-full' : ''}`}>
{/* Template info banner - shown when conditions are met */}
{showTemplateInfo && templateInfo && (
<div className="flex items-center gap-3 text-xs text-muted-foreground uppercase tracking-wide">
@@ -710,27 +710,29 @@ export const ChatPane = forwardRef<ChatPaneRef, ChatPaneProps>(({
</div>
)}
<ChatInput
isLoading={isLoading}
isConfigured={isConfigured}
providerModel={providerModel}
onProviderModelChange={handleModelChange}
onSend={handleSend}
onStop={stopGeneration}
onFocus={handleTextareaFocus}
onFirstInteraction={handleFirstInteraction}
isModelSelectorOpen={isModelSelectorOpen}
onModelSelectorOpenChange={setIsModelSelectorOpen}
contextUsagePercentage={contextUsagePercentage}
currentModelContextLength={currentModel?.contextLength}
lastInputTokens={lastInputTokens}
totalCost={totalCost}
isDragOver={isDragOver}
onDragEnter={handleDragEnter}
onDragOver={handleDragOver}
onDragLeave={handleDragLeave}
onDrop={handleDrop}
/>
<div className={`border-t ${isChat ? 'max-w-3xl mx-auto w-full' : ''}`}>
<ChatInput
isLoading={isLoading}
isConfigured={isConfigured}
providerModel={providerModel}
onProviderModelChange={handleModelChange}
onSend={handleSend}
onStop={stopGeneration}
onFocus={handleTextareaFocus}
onFirstInteraction={handleFirstInteraction}
isModelSelectorOpen={isModelSelectorOpen}
onModelSelectorOpenChange={setIsModelSelectorOpen}
contextUsagePercentage={contextUsagePercentage}
currentModelContextLength={currentModel?.contextLength}
lastInputTokens={lastInputTokens}
totalCost={totalCost}
isDragOver={isDragOver}
onDragEnter={handleDragEnter}
onDragOver={handleDragOver}
onDragLeave={handleDragLeave}
onDrop={handleDrop}
/>
</div>
{/* Onboarding Dialog */}
<OnboardingDialog