From a54bc69d46f6cf84e3fa6b7248ee94d415975496 Mon Sep 17 00:00:00 2001 From: JimmFly Date: Tue, 7 Feb 2023 12:09:09 +0800 Subject: [PATCH 1/5] fix: add public page search ui --- .../app/src/components/quick-search/index.tsx | 68 ++++++++++--------- 1 file changed, 36 insertions(+), 32 deletions(-) diff --git a/packages/app/src/components/quick-search/index.tsx b/packages/app/src/components/quick-search/index.tsx index 7c24f0b970..88f1b7e125 100644 --- a/packages/app/src/components/quick-search/index.tsx +++ b/packages/app/src/components/quick-search/index.tsx @@ -72,7 +72,7 @@ export const QuickSearch = ({ open, onClose }: TransitionsModalProps) => { width={620} style={{ maxHeight: '80vh', - minHeight: '350px', + minHeight: isPublic && query.length === 0 ? '72px' : '350px', top: '12vh', }} > @@ -100,37 +100,41 @@ export const QuickSearch = ({ open, onClose }: TransitionsModalProps) => { /> {isMac() ? '⌘ + K' : 'Ctrl + K'} - - - - {!isPublic ? ( - - ) : ( - - )} - - {!isPublic ? ( - showCreatePage ? ( - <> - - -