chore: adjust tag editor style (#11757)
close AF-2006  
This commit is contained in:
@@ -5,4 +5,5 @@ export const inlineTagsContainer = style({
|
|||||||
gap: '6px',
|
gap: '6px',
|
||||||
flexWrap: 'wrap',
|
flexWrap: 'wrap',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
alignItems: 'center',
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export const tagsEditorRoot = style({
|
|||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
gap: '12px',
|
gap: '4px',
|
||||||
});
|
});
|
||||||
|
|
||||||
export const tagsEditorRootMobile = style([
|
export const tagsEditorRootMobile = style([
|
||||||
@@ -27,13 +27,6 @@ export const tagsEditorRootMobile = style([
|
|||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
export const inlineTagsContainer = style({
|
|
||||||
display: 'flex',
|
|
||||||
gap: '6px',
|
|
||||||
flexWrap: 'wrap',
|
|
||||||
width: '100%',
|
|
||||||
});
|
|
||||||
|
|
||||||
export const tagsMenu = style({
|
export const tagsMenu = style({
|
||||||
padding: 0,
|
padding: 0,
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
@@ -45,23 +38,25 @@ export const tagsMenu = style({
|
|||||||
|
|
||||||
export const tagsEditorSelectedTags = style({
|
export const tagsEditorSelectedTags = style({
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
gap: '4px',
|
|
||||||
flexWrap: 'wrap',
|
flexWrap: 'wrap',
|
||||||
padding: '10px 12px',
|
padding: '10px 12px 0px',
|
||||||
backgroundColor: cssVarV2('input/background'),
|
|
||||||
minHeight: 42,
|
minHeight: 42,
|
||||||
selectors: {
|
selectors: {
|
||||||
[`${tagsEditorRootMobile} &`]: {
|
[`${tagsEditorRootMobile} &`]: {
|
||||||
borderRadius: 12,
|
borderRadius: 12,
|
||||||
|
paddingBottom: '10px',
|
||||||
backgroundColor: cssVarV2('layer/background/primary'),
|
backgroundColor: cssVarV2('layer/background/primary'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
export const tagDivider = style({
|
||||||
|
borderBottomColor: cssVarV2('tab/divider/divider'),
|
||||||
|
});
|
||||||
|
|
||||||
export const searchInput = style({
|
export const searchInput = style({
|
||||||
flexGrow: 1,
|
flexGrow: 1,
|
||||||
padding: '10px 0',
|
height: '30px',
|
||||||
margin: '-10px 0',
|
|
||||||
border: 'none',
|
border: 'none',
|
||||||
outline: 'none',
|
outline: 'none',
|
||||||
fontSize: '14px',
|
fontSize: '14px',
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
import { IconButton, Menu, RowInput, Scrollable } from '@affine/component';
|
import {
|
||||||
|
Divider,
|
||||||
|
IconButton,
|
||||||
|
Menu,
|
||||||
|
RowInput,
|
||||||
|
Scrollable,
|
||||||
|
} from '@affine/component';
|
||||||
import { useI18n } from '@affine/i18n';
|
import { useI18n } from '@affine/i18n';
|
||||||
import { MoreHorizontalIcon } from '@blocksuite/icons/rc';
|
import { MoreHorizontalIcon } from '@blocksuite/icons/rc';
|
||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
@@ -249,6 +255,9 @@ export const TagsEditor = ({
|
|||||||
placeholder="Type here ..."
|
placeholder="Type here ..."
|
||||||
/>
|
/>
|
||||||
</InlineTagList>
|
</InlineTagList>
|
||||||
|
{BUILD_CONFIG.isMobileEdition ? null : (
|
||||||
|
<Divider size="thinner" className={styles.tagDivider} />
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.tagsEditorTagsSelector}>
|
<div className={styles.tagsEditorTagsSelector}>
|
||||||
<div className={styles.tagsEditorTagsSelectorHeader}>
|
<div className={styles.tagsEditorTagsSelectorHeader}>
|
||||||
|
|||||||
Reference in New Issue
Block a user