qinyan 1 år sedan
förälder
incheckning
0e87a33c35
1 ändrade filer med 10 tillägg och 1 borttagningar
  1. 10 1
      src/modules/editor/components/Viewport/Slider/SliderRight/CompTree.tsx

+ 10 - 1
src/modules/editor/components/Viewport/Slider/SliderRight/CompTree.tsx

@@ -224,7 +224,7 @@ const CompNode = defineComponent({
           <span class="w-1/1 flex-1 whitespace-nowrap mr-30px">
             {props.title}
           </span>
-          <span class="space-x-4px whitespace-nowrap">
+          <span class="actions space-x-4px whitespace-nowrap transition">
             {actions.map((action, i) =>
               action.getVisible.call(editor, comp) ? (
                 <action.component
@@ -265,4 +265,13 @@ const nodeStyle = css`
     margin-right: 6px;
     object-fit: contain;
   }
+
+  .actions {
+    opacity: 0;
+  }
+  &:hover {
+    .actions {
+      opacity: 1;
+    }
+  }
 `;