Skip to content

Commit a13ad26

Browse files
committed
fix: visual polish for widget transform
1 parent 347ce25 commit a13ad26

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/@vue/cli-ui/src/components/Widget.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
icon-left="close"
6565
v-tooltip="$t('org.vue.components.widget.remove')"
6666
@mousedown.native.stop
67-
@click="remove()"
67+
@click.stop="remove()"
6868
/>
6969

7070
<template v-if="isSelected">
@@ -548,8 +548,6 @@ export default {
548548
v-box()
549549
box-center()
550550
cursor move
551-
&:hover
552-
background rgba($vue-ui-color-primary, .2)
553551
554552
/deep/ > *
555553
transition transform .15s
@@ -571,6 +569,11 @@ export default {
571569
>>> svg
572570
fill @color
573571
572+
.customize-overlay:hover,
573+
.moving .customize-overlay,
574+
.resizing .customize-overlay
575+
background rgba($vue-ui-color-primary, .2)
576+
574577
.remove-button
575578
position absolute
576579
top $padding-item

0 commit comments

Comments
 (0)