mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
fix: width of cmd-item button on quick-search modal (#2273)
This commit is contained in:
@@ -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}
|
||||
@@ -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>
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user