From 4f2c334684e41742edfa7c56cee70468d60fcc56 Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 1 Sep 2023 00:06:50 +0800 Subject: ... --- FrontEnd/src/pages/timeline/TimelineInfoCard.tsx | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/FrontEnd/src/pages/timeline/TimelineInfoCard.tsx b/FrontEnd/src/pages/timeline/TimelineInfoCard.tsx index b1310be9..2bc40877 100644 --- a/FrontEnd/src/pages/timeline/TimelineInfoCard.tsx +++ b/FrontEnd/src/pages/timeline/TimelineInfoCard.tsx @@ -162,13 +162,22 @@ export default function TimelineInfoCard(props: TimelineInfoCardProps) { } }); - const { controller, switchDialog } = useDialog({ - "full-page": ( - - - - ), - }); + const { controller, switchDialog } = useDialog( + { + "full-page": ( + + + + ), + }, + { + onClose: { + "full-page": () => { + setCollapse(true); + }, + }, + }, + ); return (