Remove max height from dyad think to avoid arbitrary cutoff (#230)
Fixes #207
This commit is contained in:
@@ -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
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user