Commit 24b59ce8 authored by christianrhansen's avatar christianrhansen

setup different temp cell styles for "edit" and "add"

parent e2204c75
Pipeline #51059 passed with stage
in 4 minutes
......@@ -120,7 +120,8 @@
//----------------------------------------------------------------------------------------------- temporary cell
// template(v-if="!tempCell.hidden && cachedNewCell")
// template(v-if="cachedNewCell")
.cell-item.temp-cell(@click="clickTempCell", :style="getCellStyle(tempCell)")
.cell-item.temp-cell(@click="clickTempCell", :style="getCellStyle(tempCell)",
:class="{'edit': tempCell.type === 'edit'}")
//------------------------------------------------------------------------------------------------------ handler
//--------------------------------------------------------------------------------------------------------- move
......@@ -293,7 +294,8 @@
height: 1,
left: 0,
hidden: true,
onGrid: false
onGrid: false,
type: undefined
},
modal: false,
cellHandler: {
......@@ -619,6 +621,7 @@
if (obj.isFirst) {
moveHandler.pushed = true
tempCell.type = 'edit'
}
// move handler while pushing handler
......@@ -666,6 +669,7 @@
if (obj.isFirst) {
resizeHandler.pushed = true
tempCell.type = 'edit'
}
Object.assign(tempCell, {
......@@ -747,7 +751,8 @@
Object.assign(tempCell, {
hidden: false,
x: pos.x,
y: pos.y
y: pos.y,
type: undefined
})
}
......@@ -1393,6 +1398,9 @@
.temp-cell
background-color rgba(115, 170, 255, .75)
border 1px solid rgba(110, 150, 255, 1)
&.edit
border 1px solid red
background-color transparent
//************************************************** mobile: new cell
handler-width-mobile = 40px
......
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