mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix: theme button width (#2202)
This commit is contained in:
@@ -17,6 +17,7 @@ export const StyledThemeModeContainer = styled('div')(() => {
|
|||||||
});
|
});
|
||||||
export const StyledThemeButtonContainer = styled('div')(() => {
|
export const StyledThemeButtonContainer = styled('div')(() => {
|
||||||
return {
|
return {
|
||||||
|
height: '32px',
|
||||||
border: `1px solid var(--affine-border-color)`,
|
border: `1px solid var(--affine-border-color)`,
|
||||||
borderRadius: '4px',
|
borderRadius: '4px',
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
@@ -29,6 +30,8 @@ export const StyledThemeButton = styled('button')<{
|
|||||||
active: boolean;
|
active: boolean;
|
||||||
}>(({ active }) => {
|
}>(({ active }) => {
|
||||||
return {
|
return {
|
||||||
|
height: '100%',
|
||||||
|
flex: 1,
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
color: active ? 'var(--affine-primary-color)' : 'var(--affine-icon-color)',
|
color: active ? 'var(--affine-primary-color)' : 'var(--affine-icon-color)',
|
||||||
};
|
};
|
||||||
@@ -36,7 +39,7 @@ export const StyledThemeButton = styled('button')<{
|
|||||||
export const StyledVerticalDivider = styled('div')(() => {
|
export const StyledVerticalDivider = styled('div')(() => {
|
||||||
return {
|
return {
|
||||||
width: '1px',
|
width: '1px',
|
||||||
height: '32px',
|
height: '100%',
|
||||||
borderLeft: `1px solid var(--affine-border-color)`,
|
borderLeft: `1px solid var(--affine-border-color)`,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ export const StyledMenuWrapper = styled(StyledPopperContainer)<{
|
|||||||
fontSize: '14px',
|
fontSize: '14px',
|
||||||
backgroundColor: 'var(--affine-white)',
|
backgroundColor: 'var(--affine-white)',
|
||||||
boxShadow: 'var(--affine-menu-shadow)',
|
boxShadow: 'var(--affine-menu-shadow)',
|
||||||
|
userSelect: 'none',
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user