fixed nudges design
This commit is contained in:
parent
fa94c48647
commit
69c71044db
2 changed files with 144 additions and 141 deletions
|
|
@ -11,7 +11,7 @@ export default function Nudges({
|
|||
handleSuggestionClick: (suggestion: string) => void;
|
||||
}) {
|
||||
return (
|
||||
<div className="flex-shrink-0 h-12 w-full overflow-hidden pl-10">
|
||||
<div className="flex-shrink-0 h-12 w-full overflow-hidden">
|
||||
<AnimatePresence>
|
||||
{nudges.length > 0 && (
|
||||
<motion.div
|
||||
|
|
|
|||
|
|
@ -1109,7 +1109,8 @@ function ChatPage() {
|
|||
}
|
||||
};
|
||||
|
||||
return (<>
|
||||
return (
|
||||
<>
|
||||
{/* Debug header - only show in debug mode */}
|
||||
{isDebugMode && (
|
||||
<div className="flex items-center justify-between p-6">
|
||||
|
|
@ -1167,9 +1168,7 @@ function ChatPage() {
|
|||
<>
|
||||
<Loader2 className="h-12 w-12 mx-auto mb-4 animate-spin" />
|
||||
<p>Processing your document...</p>
|
||||
<p className="text-sm mt-2">
|
||||
This may take a few moments
|
||||
</p>
|
||||
<p className="text-sm mt-2">This may take a few moments</p>
|
||||
</>
|
||||
) : null}
|
||||
</div>
|
||||
|
|
@ -1215,10 +1214,12 @@ function ChatPage() {
|
|||
</>
|
||||
)}
|
||||
{!streamingMessage && (
|
||||
<div className="pl-10">
|
||||
<Nudges
|
||||
nudges={loading ? [] : (nudges as string[])}
|
||||
handleSuggestionClick={handleSuggestionClick}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</StickToBottom.Content>
|
||||
|
|
@ -1248,7 +1249,8 @@ function ChatPage() {
|
|||
setSelectedFilter={setSelectedFilter}
|
||||
setIsFilterHighlighted={setIsFilterHighlighted}
|
||||
setIsFilterDropdownOpen={setIsFilterDropdownOpen}
|
||||
/></>
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -1263,7 +1265,8 @@ export default function ProtectedChatPage() {
|
|||
mass={1}
|
||||
>
|
||||
<ChatPage />
|
||||
</StickToBottom></div>
|
||||
</StickToBottom>
|
||||
</div>
|
||||
</ProtectedRoute>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue