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 }>;
|
headerWrapper?: React.ComponentType<{ children: React.ReactNode }>;
|
||||||
}
|
}
|
||||||
|
|
||||||
const MIN_COLLAPSIBLE_HEIGHT = 225;
|
const MIN_COLLAPSIBLE_HEIGHT = 275;
|
||||||
|
|
||||||
export const FileCard = React.memo(
|
export const FileCard = React.memo(
|
||||||
({
|
({
|
||||||
|
|
|
@ -10,8 +10,6 @@ export const ChatHeader: React.FC = React.memo(() => {
|
||||||
const chatTitle = useChatIndividualContextSelector((state) => state.chatTitle);
|
const chatTitle = useChatIndividualContextSelector((state) => state.chatTitle);
|
||||||
const isCompletedStream = useChatIndividualContextSelector((state) => state.isStreamingMessage);
|
const isCompletedStream = useChatIndividualContextSelector((state) => state.isStreamingMessage);
|
||||||
|
|
||||||
if (!chatTitle) return null;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ChatHeaderTitle
|
<ChatHeaderTitle
|
||||||
|
|
|
@ -25,7 +25,7 @@ export const ChatHeaderTitle: React.FC<{
|
||||||
<AnimatePresence mode="wait" initial={!isCompletedStream}>
|
<AnimatePresence mode="wait" initial={!isCompletedStream}>
|
||||||
<motion.div
|
<motion.div
|
||||||
{...(!isCompletedStream ? animation : {})}
|
{...(!isCompletedStream ? animation : {})}
|
||||||
key={chatTitle}
|
key={chatTitle || 'initial'}
|
||||||
className="flex w-full items-center overflow-hidden">
|
className="flex w-full items-center overflow-hidden">
|
||||||
<EditableTitle
|
<EditableTitle
|
||||||
className="w-full"
|
className="w-full"
|
||||||
|
|
Loading…
Reference in New Issue