Commit 49293545 authored by christianrhansen's avatar christianrhansen

styling new-cell-helper

parent a0c86dbc
Pipeline #16589 passed with stage
in 5 minutes and 14 seconds
......@@ -6,16 +6,17 @@
// ------------------------------------------------------------------------------------------ cached new cell helper
// q-page-sticky.z-top(v-touch-pan="moveCachedCell", v-if="cachedNewCell", position="top-right")
// .fixed.z-top(v-if="cachedNewCell")
//
.fixed-top-right.z-top(v-touch-pan="moveCachedCell", v-if="cachedNewCell",
// :style="{top: touch.position.top - 16 - 16 + 'px'}")
// .fixed-top.z-top(v-touch-pan="moveCachedCell", v-if="cachedNewCell")
.fixed-top-right.z-top(v-touch-pan="moveCachedCell", v-if="cachedNewCell",
:style="{top: touch.position.top - 16 - 16 + 'px'}")
q-item.backdrop-filter.text-dark.q-pa-sm.q-ma-md.shadow-4.q-pl-md()
#cell-helper.fixed-top.z-top.bg-dark.text-white.transition(:class="{'show': cachedNewCell}")
q-item.q-px-md.q-py-none.full-height
q-item-main
| Place your cell anywhere.
| Touch anywhere to place the new cell.
q-item-side
q-btn.bg-primary.text-white.on-right(@click.native="cachedNewCell = undefined", round, flat)
q-icon(name="delete")
q-btn.bg-transparent.text-white.on-right(@click.native="$store.commit('mosys/cacheNewCell', undefined)", round, flat)
q-icon(name="clear")
// ------------------------------------------------------------------------------------------------------------ grid
div.cell-grid(
......@@ -323,11 +324,13 @@
async cellHold (event, annotation) {
this.$store.commit('mosys/setEditingCells', '')
/*
this.$q.notify({
message: 'Cell was cloned.',
color: 'dark',
textColor: 'white'
})
*/
const _cell = await this.$store.dispatch('cells/get', annotation.body.source.id)
const resourceCell = {
......@@ -892,4 +895,10 @@
width calc(100vw - 32px)
max-height calc(calc(100vh - 60px - 16px - 16px) / 2)
overflow-y scroll
#cell-helper
height 59px
top -60px
&.show
top 0px
</style>
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