From 9a6ef0caac70031f924f15c545411af3e6db5690 Mon Sep 17 00:00:00 2001 From: shaokeyibb Date: Sat, 28 Sep 2024 21:25:42 +0800 Subject: [PATCH] fix: expand animation --- frontend/lib/main.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/frontend/lib/main.ts b/frontend/lib/main.ts index f9947ee2..d85a8db7 100644 --- a/frontend/lib/main.ts +++ b/frontend/lib/main.ts @@ -1053,7 +1053,6 @@ const _renderComments = (comments: Comment[]) => { commentExpand.addEventListener("click", () => { commentExpand.style.display = "none"; commentFold.style.display = ""; - commentMain.style.maxHeight = "100%"; commentMain.style.maxHeight = commentMain.scrollHeight + "px"; }); commentFold.addEventListener("click", () => {