diff --git a/packages/frontend/core/src/components/affine/onboarding/switch-widgets/style.css.tsx b/packages/frontend/core/src/components/affine/onboarding/switch-widgets/style.css.tsx
index 7337e95ab0..5b72a9f7bf 100644
--- a/packages/frontend/core/src/components/affine/onboarding/switch-widgets/style.css.tsx
+++ b/packages/frontend/core/src/components/affine/onboarding/switch-widgets/style.css.tsx
@@ -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',
diff --git a/packages/frontend/core/src/components/affine/onboarding/switch-widgets/switch.tsx b/packages/frontend/core/src/components/affine/onboarding/switch-widgets/switch.tsx
index 49d2012297..d56de516c0 100644
--- a/packages/frontend/core/src/components/affine/onboarding/switch-widgets/switch.tsx
+++ b/packages/frontend/core/src/components/affine/onboarding/switch-widgets/switch.tsx
@@ -30,13 +30,11 @@ export const EdgelessSwitchButtons = ({