mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-25 19:31:52 +03:00
feat: icon not align center in filter button (#3938)
This commit is contained in:
parent
a79284b65e
commit
61ac597cba
@ -63,10 +63,8 @@ export const Condition = ({
|
|||||||
<div className={styles.filterTypeIconStyle}>
|
<div className={styles.filterTypeIconStyle}>
|
||||||
{variableDefineMap[ast.left.name].icon}
|
{variableDefineMap[ast.left.name].icon}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
|
||||||
<FilterTag name={ast.left.name} />
|
<FilterTag name={ast.left.name} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</Menu>
|
</Menu>
|
||||||
<Menu
|
<Menu
|
||||||
trigger="click"
|
trigger="click"
|
||||||
|
@ -53,6 +53,8 @@ export const switchStyle = style({
|
|||||||
color: 'var(--affine-text-secondary-color)',
|
color: 'var(--affine-text-secondary-color)',
|
||||||
padding: '2px 4px',
|
padding: '2px 4px',
|
||||||
transition: 'all 0.15s ease-in-out',
|
transition: 'all 0.15s ease-in-out',
|
||||||
|
display: 'flex',
|
||||||
|
alignItems: 'center',
|
||||||
':hover': {
|
':hover': {
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
background: 'var(--affine-hover-color)',
|
background: 'var(--affine-hover-color)',
|
||||||
@ -62,6 +64,7 @@ export const switchStyle = style({
|
|||||||
export const filterTypeStyle = style({
|
export const filterTypeStyle = style({
|
||||||
fontSize: 'var(--affine-font-sm)',
|
fontSize: 'var(--affine-font-sm)',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
|
alignItems: 'center',
|
||||||
padding: '2px 4px',
|
padding: '2px 4px',
|
||||||
transition: 'all 0.15s ease-in-out',
|
transition: 'all 0.15s ease-in-out',
|
||||||
marginRight: '6px',
|
marginRight: '6px',
|
||||||
@ -76,5 +79,6 @@ export const filterTypeIconStyle = style({
|
|||||||
marginRight: '6px',
|
marginRight: '6px',
|
||||||
padding: '1px 0',
|
padding: '1px 0',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
|
alignItems: 'center',
|
||||||
color: 'var(--affine-icon-color)',
|
color: 'var(--affine-icon-color)',
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user