Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

chore: adjust hover tooltips for sidebar switch (#8574)

JimmFly5769d271e088
diff --git a/packages/frontend/core/src/modules/app-sidebar/views/sidebar-header/sidebar-switch.tsx b/packages/frontend/core/src/modules/app-sidebar/views/sidebar-header/sidebar-switch.tsx
index abc6bfb7dd..e201884d15 100644
--- a/packages/frontend/core/src/modules/app-sidebar/views/sidebar-header/sidebar-switch.tsx
+++ b/packages/frontend/core/src/modules/app-sidebar/views/sidebar-header/sidebar-switch.tsx
@@ -57,7 +57,10 @@ export const SidebarSwitch = ({
<IconButton
tooltip={tooltipContent}
tooltipShortcut={['$mod', '/']}
- tooltipOptions={{ side: open ? 'bottom' : 'right' }}
+ tooltipOptions={{
+ side: open ? 'bottom' : 'right',
+ rootOptions: { delayDuration: 700 },
+ }}
className={className}
size="24"
style={{