mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-01-04 23:32:31 +03:00
fix(core): hairline boarders for divider (#8021)
This commit is contained in:
parent
f544e69d02
commit
4ff6fbd052
@ -31,10 +31,7 @@ export const Divider = forwardRef<HTMLDivElement, DividerProps>(
|
|||||||
styles.divider,
|
styles.divider,
|
||||||
{
|
{
|
||||||
[styles.verticalDivider]: orientation === 'vertical',
|
[styles.verticalDivider]: orientation === 'vertical',
|
||||||
[styles.thinner]:
|
[styles.thinner]: size === 'thinner',
|
||||||
size === 'thinner' && orientation === 'horizontal',
|
|
||||||
[styles.verticalThinner]:
|
|
||||||
size === 'thinner' && orientation === 'vertical',
|
|
||||||
},
|
},
|
||||||
className
|
className
|
||||||
)}
|
)}
|
||||||
|
@ -1,21 +1,19 @@
|
|||||||
import { cssVar } from '@toeverything/theme';
|
import { cssVar } from '@toeverything/theme';
|
||||||
import { style } from '@vanilla-extract/css';
|
import { style } from '@vanilla-extract/css';
|
||||||
export const divider = style({
|
export const divider = style({
|
||||||
height: '1px',
|
borderBottom: `1px solid ${cssVar('borderColor')}`,
|
||||||
backgroundColor: cssVar('borderColor'),
|
height: 0,
|
||||||
borderRadius: '8px',
|
|
||||||
margin: '8px 0',
|
margin: '8px 0',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
});
|
});
|
||||||
export const thinner = style({
|
|
||||||
height: '0.5px',
|
|
||||||
});
|
|
||||||
export const verticalDivider = style({
|
export const verticalDivider = style({
|
||||||
width: '1px',
|
borderLeft: `1px solid ${cssVar('borderColor')}`,
|
||||||
borderRadius: '8px',
|
width: 0,
|
||||||
height: '100%',
|
height: '100%',
|
||||||
margin: '0 2px',
|
margin: '0 2px',
|
||||||
});
|
});
|
||||||
export const verticalThinner = style({
|
|
||||||
width: '0.5px',
|
export const thinner = style({
|
||||||
|
borderWidth: '0.5px',
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user