mirror of https://github.com/buster-so/buster.git
Merge pull request #441 from buster-so/big-nate/bus-1275-change-todo-list-code-component-to-the-not-collapsed
Collapsible height for component
This commit is contained in:
commit
2b63819d03
|
@ -22,7 +22,7 @@ interface FileCardProps {
|
|||
headerWrapper?: React.ComponentType<{ children: React.ReactNode }>;
|
||||
}
|
||||
|
||||
const MIN_COLLAPSIBLE_HEIGHT = 225;
|
||||
const MIN_COLLAPSIBLE_HEIGHT = 275;
|
||||
|
||||
export const FileCard = React.memo(
|
||||
({
|
||||
|
|
|
@ -10,8 +10,6 @@ export const ChatHeader: React.FC = React.memo(() => {
|
|||
const chatTitle = useChatIndividualContextSelector((state) => state.chatTitle);
|
||||
const isCompletedStream = useChatIndividualContextSelector((state) => state.isStreamingMessage);
|
||||
|
||||
if (!chatTitle) return null;
|
||||
|
||||
return (
|
||||
<>
|
||||
<ChatHeaderTitle
|
||||
|
|
|
@ -25,7 +25,7 @@ export const ChatHeaderTitle: React.FC<{
|
|||
<AnimatePresence mode="wait" initial={!isCompletedStream}>
|
||||
<motion.div
|
||||
{...(!isCompletedStream ? animation : {})}
|
||||
key={chatTitle}
|
||||
key={chatTitle || 'initial'}
|
||||
className="flex w-full items-center overflow-hidden">
|
||||
<EditableTitle
|
||||
className="w-full"
|
||||
|
|
Loading…
Reference in New Issue