Commit f4c6b839 authored by christianrhansen's avatar christianrhansen

mosys mobile: edit-button only appears when cell is selected

parent 0a2fc3ea
Pipeline #19922 passed with stage
in 1 minute and 22 seconds
......@@ -73,8 +73,9 @@
:class="getAnnotationClasses(annotation._uuid, 'cell-item')",
:key="`cell-${index}`")
//----- edit-/close-button
//--------------------------------------------------------------------------------------- edit-/close-button
// TODO: find a more elegant solution
//-------------------------------------------------------------------------------------------------- desktop
.desktop-only
q-btn.edit-button.absolute-top-right(
@click.prevent="event => {handleCellEditClick(event, annotation)}",
......@@ -82,11 +83,14 @@
style="top: 8px; right: 8px;",
:icon="annotationUIStates[annotation._uuid].editing ? 'close' : 'edit'", flat, round, size="md"
)
//--------------------------------------------------------------------------------------------------- mobile
.mobile-only
.edit-button.absolute.fit.bg-transparent(
v-touch-hold="event => {handleCellInfoTouch(event, annotation)}",
@click.prevent="event => {touchMobileCell(event, annotation)}")
q-btn.absolute-top-right.text-dark.q-pa-none.q-mr-xs(
v-if="showEditingCells",
@click.prevent="event => {handleCellInfoTouch(event, annotation)}",
flat, round, size="sm", style="margin-top: 2px;")
q-icon(name="edit", size="20px")
......
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