Commit 0a045a67 authored by christianrhansen's avatar christianrhansen

cell hover effect only on desktop view

parent 6cb254a1
Pipeline #16559 passed with stage
in 5 minutes and 5 seconds
......@@ -237,14 +237,15 @@
contextMenuClickPosition: {},
resizingGrid: false,
mobileSelectedCell: undefined,
touch: {position: {top: undefined, left: undefined}}
touch: {position: {top: undefined, left: undefined}},
isMobile: this.$q.platform.is.mobile
}
},
computed: {
...mapGetters({
cachedNewCell: 'mosys/getNewCell',
user: 'auth/getUserState',
isMobile: 'globalSettings/getIsMobile',
// isMobile: 'globalSettings/getIsMobile',
// editingCells: 'mosys/getEditingCells'
showEditingCells: 'mosys/getShowEditingCells',
scrollPositionCache: 'mosys/getScrollPositionCache',
......@@ -811,7 +812,8 @@
if (which === 'cell-item') {
return {
selected: this.annotationUIStates[uuid] ? this.annotationUIStates[uuid].selected : false,
editing: this.annotationUIStates[uuid] ? this.annotationUIStates[uuid].editing : false
editing: this.annotationUIStates[uuid] ? this.annotationUIStates[uuid].editing : false,
hover: !this.isMobile
}
}
else return {}
......@@ -845,7 +847,7 @@
grid-row-end: span 1
&:hover
background-color lightblue
/*background-color lightblue*/
.edit-button
display: block
......@@ -859,6 +861,10 @@
&.selected
background-color lightpink
&.hover
&:hover
background-color lightblue
.edit-button
display: none
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment