From 86c376943f5b3641fb3d720647dbc27afa68d8d3 Mon Sep 17 00:00:00 2001 From: ji ruo <79234113+RuoJi6@users.noreply.github.com> Date: Mon, 12 Oct 2026 11:26:49 +0800 Subject: [PATCH] fix: render approval details at intrinsic height --- .../components/side-question-workspace.tsx | 47 ++++++++++--------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/web/src/components/side-question-workspace.tsx b/web/src/components/side-question-workspace.tsx index 4ef5511..0222a0b 100644 --- a/web/src/components/side-question-workspace.tsx +++ b/web/src/components/side-question-workspace.tsx @@ -264,31 +264,32 @@ export function SideQuestionWorkspace({ mainClassName?: string; }) { const mobile = useIsMobile(); + const desktopSideOpen = side.open && side.enabled && !mobile; return ( <> - - - {children} - - {side.open && side.enabled && !mobile && ( - <> - - - - - - )} - + {desktopSideOpen ? ( + + + {children} + + + + + + + ) : ( +
{children}
+ )}