chore: update quick search style (#1376)
This commit is contained in:
@@ -96,7 +96,8 @@ export const Results: React.FC<ResultsProps> = ({
|
|||||||
)
|
)
|
||||||
) : (
|
) : (
|
||||||
<div>
|
<div>
|
||||||
<Command.Group heading={t('Recently viewed')}>
|
{recentlyViewed.length > 0 && (
|
||||||
|
<Command.Group heading={t('Recent')}>
|
||||||
{recentlyViewed.map(recent => {
|
{recentlyViewed.map(recent => {
|
||||||
return (
|
return (
|
||||||
<Command.Item
|
<Command.Item
|
||||||
@@ -125,6 +126,8 @@ export const Results: React.FC<ResultsProps> = ({
|
|||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</Command.Group>
|
</Command.Group>
|
||||||
|
)}
|
||||||
|
|
||||||
<Command.Group heading={t('Jump to')}>
|
<Command.Group heading={t('Jump to')}>
|
||||||
{List.map(link => {
|
{List.map(link => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -8,13 +8,16 @@ export const StyledContent = styled('div')(({ theme }) => {
|
|||||||
overflow: 'auto',
|
overflow: 'auto',
|
||||||
marginBottom: '10px',
|
marginBottom: '10px',
|
||||||
...displayFlex('center', 'flex-start'),
|
...displayFlex('center', 'flex-start'),
|
||||||
color: theme.colors.popoverColor,
|
color: theme.colors.textColor,
|
||||||
transition: 'all 0.15s',
|
transition: 'all 0.15s',
|
||||||
letterSpacing: '0.06em',
|
letterSpacing: '0.06em',
|
||||||
'[cmdk-group-heading]': {
|
'[cmdk-group-heading]': {
|
||||||
margin: '5px 16px',
|
...displayFlex('start', 'center'),
|
||||||
fontSize: theme.font.base,
|
margin: '0 16px',
|
||||||
fontWeight: '500',
|
height: '36px',
|
||||||
|
lineHeight: '22px',
|
||||||
|
fontSize: theme.font.sm,
|
||||||
|
color: theme.colors.secondaryTextColor,
|
||||||
},
|
},
|
||||||
'[aria-selected="true"]': {
|
'[aria-selected="true"]': {
|
||||||
borderRadius: '5px',
|
borderRadius: '5px',
|
||||||
|
|||||||
Reference in New Issue
Block a user