Unverified 提交 830e4ece authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

Remove max height from dyad think to avoid arbitrary cutoff (#230)

Fixes #207
上级 f4c7d614
...@@ -57,7 +57,7 @@ export const DyadThink: React.FC<DyadThinkProps> = ({ children, node }) => { ...@@ -57,7 +57,7 @@ export const DyadThink: React.FC<DyadThinkProps> = ({ children, node }) => {
<div <div
className="pt-6 overflow-hidden transition-all duration-300 ease-in-out" className="pt-6 overflow-hidden transition-all duration-300 ease-in-out"
style={{ style={{
maxHeight: isExpanded ? "1000px" : "0px", maxHeight: isExpanded ? "none" : "0px",
opacity: isExpanded ? 1 : 0, opacity: isExpanded ? 1 : 0,
marginBottom: isExpanded ? "0" : "-6px", // Compensate for padding marginBottom: isExpanded ? "0" : "-6px", // Compensate for padding
}} }}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论