fix: add public page search ui
This commit is contained in:
@@ -72,7 +72,7 @@ export const QuickSearch = ({ open, onClose }: TransitionsModalProps) => {
|
|||||||
width={620}
|
width={620}
|
||||||
style={{
|
style={{
|
||||||
maxHeight: '80vh',
|
maxHeight: '80vh',
|
||||||
minHeight: '350px',
|
minHeight: isPublic && query.length === 0 ? '72px' : '350px',
|
||||||
top: '12vh',
|
top: '12vh',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@@ -100,6 +100,8 @@ export const QuickSearch = ({ open, onClose }: TransitionsModalProps) => {
|
|||||||
/>
|
/>
|
||||||
<StyledShortcut>{isMac() ? '⌘ + K' : 'Ctrl + K'}</StyledShortcut>
|
<StyledShortcut>{isMac() ? '⌘ + K' : 'Ctrl + K'}</StyledShortcut>
|
||||||
</StyledModalHeader>
|
</StyledModalHeader>
|
||||||
|
{isPublic && query.length === 0 ? null : (
|
||||||
|
<>
|
||||||
<StyledModalDivider />
|
<StyledModalDivider />
|
||||||
<Command.List>
|
<Command.List>
|
||||||
<StyledContent>
|
<StyledContent>
|
||||||
@@ -131,6 +133,8 @@ export const QuickSearch = ({ open, onClose }: TransitionsModalProps) => {
|
|||||||
) : null
|
) : null
|
||||||
) : null}
|
) : null}
|
||||||
</Command.List>
|
</Command.List>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</Command>
|
</Command>
|
||||||
</ModalWrapper>
|
</ModalWrapper>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|||||||
Reference in New Issue
Block a user