Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: width of cmd-item button on quick-search modal #2273

Merged
merged 1 commit into from
May 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 21 additions & 23 deletions apps/web/src/components/pure/quick-search-modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,7 @@ export const QuickSearchModal: React.FC<QuickSearchModalProps> = ({
<StyledContent
style={{ display: isPublicAndNoQuery() ? 'none' : '' }}
>
{!isPublicWorkspace ? (
<Results
query={query}
onClose={handleClose}
router={router}
blockSuiteWorkspace={blockSuiteWorkspace}
setShowCreatePage={setShowCreatePage}
/>
) : (
{isPublicWorkspace ? (
<PublishedResults
blockSuiteWorkspace={blockSuiteWorkspace}
query={query}
Expand All @@ -176,22 +168,28 @@ export const QuickSearchModal: React.FC<QuickSearchModalProps> = ({
setPublishWorkspaceName={setPublishWorkspaceName}
data-testid="published-search-results"
/>
) : (
<Results
query={query}
onClose={handleClose}
router={router}
blockSuiteWorkspace={blockSuiteWorkspace}
setShowCreatePage={setShowCreatePage}
/>
)}
</StyledContent>
{!isPublicWorkspace ? (
showCreatePage ? (
<>
<StyledModalDivider />
<StyledModalFooter>
<Footer
query={query}
onClose={handleClose}
blockSuiteWorkspace={blockSuiteWorkspace}
router={router}
/>
</StyledModalFooter>
</>
) : null
{isPublicWorkspace ? null : showCreatePage ? (
<>
<StyledModalDivider />
<StyledModalFooter>
<Footer
query={query}
onClose={handleClose}
blockSuiteWorkspace={blockSuiteWorkspace}
router={router}
/>
</StyledModalFooter>
</>
) : null}
</Command.List>
</Command>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/pure/quick-search-modal/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export const StyledModalFooterContent = styled('button')(() => {
});
export const StyledListItem = styled('button')(() => {
return {
// width: '612px',
width: '100%',
height: '32px',
fontSize: 'inherit',
color: 'inherit',
Expand Down