mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
fix(component): click area of the item (#2221)
Co-authored-by: Himself65 <himself65@outlook.com>
This commit is contained in:
@@ -9,7 +9,7 @@ export const StyledListItem = styled('div')<{
|
||||
color: active
|
||||
? 'var(--affine-primary-color)'
|
||||
: 'var(--affine-text-primary-color)',
|
||||
paddingLeft: '16px',
|
||||
paddingLeft: '2px',
|
||||
paddingRight: '2px',
|
||||
borderRadius: '8px',
|
||||
cursor: 'pointer',
|
||||
@@ -17,7 +17,7 @@ export const StyledListItem = styled('div')<{
|
||||
position: 'relative',
|
||||
flexShrink: 0,
|
||||
userSelect: 'none',
|
||||
...displayFlex('flex-start', 'center'),
|
||||
...displayFlex('flex-start', 'stretch'),
|
||||
...(disabled
|
||||
? {
|
||||
cursor: 'not-allowed',
|
||||
@@ -25,8 +25,9 @@ export const StyledListItem = styled('div')<{
|
||||
}
|
||||
: {}),
|
||||
|
||||
'> svg, a > svg': {
|
||||
'a > svg, div > svg': {
|
||||
fontSize: '20px',
|
||||
marginLeft: '14px',
|
||||
marginRight: '12px',
|
||||
color: active
|
||||
? 'var(--affine-primary-color)'
|
||||
|
||||
Reference in New Issue
Block a user