Skip to content

Commit

Permalink
refactor: update height handling in Publications component to toggle …
Browse files Browse the repository at this point in the history
…between 'h-auto' and 'h-0' for better expansion effect
  • Loading branch information
mirsazzathossain@gmail.com committed Dec 1, 2024
1 parent 4b5d895 commit 501b71e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Publications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export default function Publications({
<div
key={index}
className={
"h-0 overflow-hidden transition-height ease-in-out duration-[400ms]"
(isExpanded ? "h-auto" : "h-0") +
" overflow-hidden transition-height ease-in-out duration-[400ms]"
}
ref={parentRef as any}
style={{
Expand Down

0 comments on commit 501b71e

Please sign in to comment.