Browse Source

refactor(gui-v2): delay tooltip to avoid showing immediately on hover

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3236/head
Pranav C 2 years ago
parent
commit
0755b71ccb
  1. 4
      packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/ToggleDrawer.vue

4
packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/ToggleDrawer.vue

@ -4,8 +4,8 @@ const { isOpen, toggle } = useSidebar({ storageKey: 'nc-right-sidebar' })
</script> </script>
<template> <template>
<a-tooltip :placement="isOpen ? 'bottomRight' : 'left'"> <a-tooltip :placement="isOpen ? 'bottomRight' : 'left'" :mouse-enter-delay="0.8">
<template #title> Toggle sidebar </template> <template #title> Toggle sidebar</template>
<div class="nc-sidebar-right-item hover:after:bg-primary/75 group nc-sidebar-add-row"> <div class="nc-sidebar-right-item hover:after:bg-primary/75 group nc-sidebar-add-row">
<MdiChevronDoubleLeft <MdiChevronDoubleLeft

Loading…
Cancel
Save