|
@@ -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;
|
|
|
+ }
|
|
|
+ }
|
|
|
`;
|