Skip to content

Commit

Permalink
[Style] Only show sidebar tool buttons when sidebar hovered (#2378)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored Jan 30, 2025
1 parent 788d6cf commit a205a5c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/sidebar/tabs/SidebarTabTemplate.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div
class="comfy-vue-side-bar-container flex flex-col h-full"
class="comfy-vue-side-bar-container flex flex-col h-full group"
:class="props.class"
>
<div class="comfy-vue-side-bar-header">
Expand All @@ -11,7 +11,11 @@
</span>
</template>
<template #end>
<slot name="tool-buttons"></slot>
<div
class="flex flex-row w-0 opacity-0 group-hover:w-auto group-hover:opacity-100 transition-all duration-200"
>
<slot name="tool-buttons"></slot>
</div>
</template>
</Toolbar>
<slot name="header"></slot>
Expand Down

0 comments on commit a205a5c

Please sign in to comment.