Commit 0a045a67 authored by christianrhansen's avatar christianrhansen
Browse files

cell hover effect only on desktop view

parent 6cb254a1
Pipeline #16559 passed with stage
in 5 minutes and 5 seconds
...@@ -237,14 +237,15 @@ ...@@ -237,14 +237,15 @@
contextMenuClickPosition: {}, contextMenuClickPosition: {},
resizingGrid: false, resizingGrid: false,
mobileSelectedCell: undefined, mobileSelectedCell: undefined,
touch: {position: {top: undefined, left: undefined}} touch: {position: {top: undefined, left: undefined}},
isMobile: this.$q.platform.is.mobile
} }
}, },
computed: { computed: {
...mapGetters({ ...mapGetters({
cachedNewCell: 'mosys/getNewCell', cachedNewCell: 'mosys/getNewCell',
user: 'auth/getUserState', user: 'auth/getUserState',
isMobile: 'globalSettings/getIsMobile', // isMobile: 'globalSettings/getIsMobile',
// editingCells: 'mosys/getEditingCells' // editingCells: 'mosys/getEditingCells'
showEditingCells: 'mosys/getShowEditingCells', showEditingCells: 'mosys/getShowEditingCells',
scrollPositionCache: 'mosys/getScrollPositionCache', scrollPositionCache: 'mosys/getScrollPositionCache',
...@@ -811,7 +812,8 @@ ...@@ -811,7 +812,8 @@
if (which === 'cell-item') { if (which === 'cell-item') {
return { return {
selected: this.annotationUIStates[uuid] ? this.annotationUIStates[uuid].selected : false, 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 {} else return {}
...@@ -845,7 +847,7 @@ ...@@ -845,7 +847,7 @@
grid-row-end: span 1 grid-row-end: span 1
&:hover &:hover
background-color lightblue /*background-color lightblue*/
.edit-button .edit-button
display: block display: block
...@@ -859,6 +861,10 @@ ...@@ -859,6 +861,10 @@
&.selected &.selected
background-color lightpink background-color lightpink
&.hover
&:hover
background-color lightblue
.edit-button .edit-button
display: none 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