diff --git a/app/components/markdown.tsx b/app/components/markdown.tsx index 4d7ae7b9c..ec413e51a 100644 --- a/app/components/markdown.tsx +++ b/app/components/markdown.tsx @@ -122,28 +122,12 @@ export function PreCode(props: { children: any }) { } }, []); - // const [collapsed, setCollapsed] = useState(true); - // const [showToggle, setShowToggle] = useState(false); - - // useEffect(() => { - // if (ref.current) { - // const codeHeight = ref.current.scrollHeight; - // setShowToggle(codeHeight > 400); - // ref.current.scrollTop = ref.current.scrollHeight; - // } - // }, [props.children]); - - // const toggleCollapsed = () => { - // setCollapsed(collapsed=>!collapsed); - // }; - return ( <>
@@ -157,13 +141,6 @@ export function PreCode(props: { children: any }) {
             }}
           >
           {props.children}
-          {/* {showToggle && collapsed && (
-            
- -
- )} */}
{mermaidCode.length > 0 && (