Commit fa6f853d authored by christianrhansen's avatar christianrhansen

added comments

parent 0c110282
Pipeline #16502 passed with stage
in 5 minutes and 15 seconds
......@@ -8,11 +8,11 @@
// q-page-sticky.z-top(v-touch-pan="moveCachedCell", v-if="cachedNewCell", position="top-right")
.fixed.z-top(v-touch-pan="moveCachedCell", v-if="cachedNewCell",
:style="{top: touch.position.top - 16 - 16 + 'px', left: touch.position.left - 16 - 16 + 'px'}")
.bg-frosted-glass.text-dark.q-px-md.q-py-sm.q-ma-md.shadow-4(:style="{width: gridDimensions.full.cell.width + 'px', height: gridDimensions.full.cell.height + 'px', borderRadius: 0}")
.bg-frosted-glass.text-dark.q-px-md.q-py-sm.q-ma-md.shadow-4(:style="{width: gridDimensions.full.cell.width + 'px', height: gridDimensions.full.cell.height + 'px'}")
| {{ cachedNewCell.type }} Cell:
br
| {{ cachedNewCell.value }}
q-btn.bg-dark.text-white.on-right(@click="", round, flat, size="sm")
q-btn.bg-dark.text-white.on-right(@click.native="cachedNewCell = undefined", round, flat, size="sm")
q-icon(name="clear")
// ------------------------------------------------------------------------------------------------------------ grid
......@@ -25,6 +25,7 @@
@contextmenu="handleGridContextMenu",
:style="gridStyle")
// context menu grid
q-context-menu(ref="gridmenu")
q-list(link, separator, no-border, style="min-width: 150px; max-height: 300px;")
q-item(
......@@ -72,7 +73,7 @@
:preview="true"
)
//----- resize-handler
//----- resize-handler (desktop only)
.desktop-only.cell-item-resize-handle(
draggable="true",
@dragstart="event => {handleCellResizerDragStart(event, annotation)}",
......@@ -119,7 +120,7 @@
q-btn.q-mr-md(round, color="primary", size="sm", @click="$router.push(`/mosys/grids/${$route.params.uuid}`)")
q-icon(name="remove red eye")
// --------------------------------------------------------------------------------------------------------- buttons
// ------------------------------------------------------------------------------------------- buttons (mobile only)
q-page-sticky.z-top.q-mb-md.backdrop-filter.shadow-1.q-mx-md.overflow-hidden(v-if="showEditingCells", position="bottom-right")
div.row.text-center.text-dark.round-borders.full-width(style="border-bottom: 1px solid #bbb;")
......@@ -138,11 +139,11 @@
div.full-width
//----- edit
//----- "edit content"-buttons
div#edit-content-mobile(v-if="editMode === 'edit'")
grid-editor-editing-cells-mobile
//----- move
//----- "move"-buttons
div(v-if="editMode === 'move'", :class="{'q-pa-sm' : editMode}")
.text-center
q-btn.bg-dark(@click="mobileCellMove(mobileSelectedCell, 0, -1)", round, flat, size="md")
......@@ -158,7 +159,7 @@
q-btn.bg-dark(@click="mobileCellMove(mobileSelectedCell, 0, 1)", round, flat, size="md")
q-icon.rotate-270(name="keyboard_backspace")
//----- resize
//----- "resize"-buttons
div(v-if="editMode === 'resize'", :class="{'q-pa-sm' : editMode}")
.text-center
q-btn.bg-dark(@click="mobileCellResize(mobileSelectedCell, 0, -1)", round, flat, size="md")
......@@ -174,7 +175,7 @@
q-btn.bg-dark(@click="mobileCellResize(mobileSelectedCell, 0, 1)", round, flat, size="md")
q-icon(name="add")
//----- delete
//----- "delete"-button
div(v-if="editMode === 'delete'", :class="{'q-pa-md' : editMode}")
.text-center
.text-dark
......
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