From d168128174b4c7fc06b95db31cfbd2b0edfdf35d Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Thu, 18 Jul 2024 11:43:42 +0800 Subject: [PATCH] fix(core): workaround for center peek styles (#7532) --- .../core/src/modules/peek-view/view/peek-view-manager.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/core/src/modules/peek-view/view/peek-view-manager.tsx b/packages/frontend/core/src/modules/peek-view/view/peek-view-manager.tsx index 1030e3161..4ceb727c9 100644 --- a/packages/frontend/core/src/modules/peek-view/view/peek-view-manager.tsx +++ b/packages/frontend/core/src/modules/peek-view/view/peek-view-manager.tsx @@ -72,7 +72,7 @@ const getRendererProps = ( activePeekView?.target instanceof HTMLElement ? activePeekView.target : undefined, - padding: activePeekView.info.type === 'doc', + padding: activePeekView.info.type !== 'image', dialogFrame: activePeekView.info.type !== 'image', }; };