mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(core): onboarding switch active state is invisible (#7928)
close AF-1262
This commit is contained in:
@@ -16,7 +16,7 @@ export const switchButtons = style({
|
||||
|
||||
selectors: {
|
||||
// indicator
|
||||
'&::after': {
|
||||
'&::before': {
|
||||
content: '',
|
||||
width: '48px',
|
||||
height: '48px',
|
||||
@@ -26,16 +26,22 @@ export const switchButtons = style({
|
||||
transition: 'transform 0.15s ease',
|
||||
boxShadow: 'var(--affine-shadow-1)',
|
||||
},
|
||||
'&[data-mode="edgeless"]::after': {
|
||||
'&[data-mode="edgeless"]::before': {
|
||||
transform: `translateX(64px)`,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export const switchButton = style({
|
||||
width: 24,
|
||||
height: 24,
|
||||
transform: 'scale(2)',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
boxShadow: 'none',
|
||||
opacity: 0.6,
|
||||
cursor: 'pointer',
|
||||
selectors: {
|
||||
'&:nth-child(1)': {
|
||||
transformOrigin: 'left',
|
||||
|
||||
@@ -30,13 +30,11 @@ export const EdgelessSwitchButtons = ({
|
||||
<PageSwitchItem
|
||||
className={styles.switchButton}
|
||||
data-active={mode === 'page'}
|
||||
active={mode === 'page'}
|
||||
onClick={onSwitchToPageMode}
|
||||
/>
|
||||
<EdgelessSwitchItem
|
||||
className={styles.switchButton}
|
||||
data-active={mode === 'edgeless'}
|
||||
active={mode === 'edgeless'}
|
||||
onClick={onSwitchToEdgelessMode}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user