diff --git a/public/css/components/dashboard.css b/public/css/components/dashboard.css index d24ad72b0..a9d148cab 100644 --- a/public/css/components/dashboard.css +++ b/public/css/components/dashboard.css @@ -125,6 +125,11 @@ position: relative; } +.drop-grid-item-resize > .dashboard-item > *, +.drop-grid-item-move > .dashboard-item > * { + display: none; +} + .drop-grid-item-move > .dashboard-item { background-color: var(--fhc-dashboard-item-overlay-background); } diff --git a/public/js/components/Dashboard/Item.js b/public/js/components/Dashboard/Item.js index bea13528c..432659a41 100644 --- a/public/js/components/Dashboard/Item.js +++ b/public/js/components/Dashboard/Item.js @@ -45,7 +45,6 @@ export default { "item_data", "place", "resizeLimits", - "dragstate", "resizeOverlay", "source" ], @@ -197,7 +196,7 @@ export default { class="dashboard-item card overflow-hidden h-100 position-relative" :class="{'hiddenWidget':hidden, 'dashboard-item-overlay':resizeOverlay, [arguments?.className]:arguments && arguments.className}" > -
+
@@ -256,7 +254,6 @@ export default { { this.mode = MODE_RESIZE; this.draggedItem = item; - this.$emit('draggedItem', item); }, 0); this._dragStart(evt); @@ -465,7 +461,6 @@ export default { this.tempPositionUpdates = null; this.draggedOffset = [0,0], this.draggedItem = null; - this.$emit('draggedItem',null); }, dragEnd() { this.removeWidgetClones(); @@ -491,7 +486,6 @@ export default { this.$emit('rearrangeItems', updated.filter(v => v)); this.draggedItem = null; - this.$emit('draggedItem', null); }, _updateCorrectedPositions(updated) { updated.forEach((item, index) => {