File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 99
99
top : 1rem ;
100
100
transition : all 0.2s ;
101
101
outline : none ;
102
- z-index : 20 ;
102
+ z-index : 10 ;
103
103
.action-btn-trigger {
104
104
visibility : hidden ;
105
105
opacity : 0 ;
106
+ pointer-events : none ;
107
+ }
108
+ & .action-btn-hover {
109
+ z-index : 20 ;
106
110
}
107
111
}
108
112
125
129
.action-btn-trigger {
126
130
visibility : visible ;
127
131
opacity : 1 ;
132
+ pointer-events : auto ;
128
133
}
129
134
}
130
135
}
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" common-card is-flex is-align-items-center is-justify-content-center app-card aspect-square"
3
- @mouseleave =" hover = true" @mouseover =" hover = true" >
3
+ @mouseleave =" hover = true; " @mouseover =" hover = true " @mouseenter = " actionBtnHover = true" >
4
4
<!-- Action Button Start -->
5
- <div v-if =" item.app_type !== 'system' && !isMircoApp && !isContainerApp && !isUninstalling && !isRebuilding" class =" action-btn" >
5
+ <div v-if =" item.app_type !== 'system' && !isMircoApp && !isContainerApp && !isUninstalling && !isRebuilding" class =" action-btn" :class = " {'action-btn-hover': actionBtnHover} " >
6
6
<b-dropdown ref =" dro" v-on-click-outside =" () => ($refs.dro.isActive = false)" :mobile-modal =" false"
7
7
:triggers =" ['contextmenu', 'click']" animation =" fade1" aria-role =" list" class =" app-card-drop"
8
8
:position =" dropdownPosition" @active-change =" setDropState" >
@@ -157,6 +157,7 @@ export default {
157
157
data () {
158
158
return {
159
159
hover: false ,
160
+ actionBtnHover: false ,
160
161
dropState: false ,
161
162
isUninstalling: false ,
162
163
isCloning: false ,
@@ -379,6 +380,9 @@ export default {
379
380
*/
380
381
setDropState (e ) {
381
382
this .dropState = e;
383
+ if (! this .dropState ) {
384
+ this .actionBtnHover = false ;
385
+ }
382
386
},
383
387
384
388
/**
You can’t perform that action at this time.
0 commit comments