From 8596c104a1efb33ae5729b8b5c6d1f6b1044c643 Mon Sep 17 00:00:00 2001 From: Michael Wedl Date: Mon, 27 Nov 2023 08:37:21 +0100 Subject: [PATCH] Add drag icon to design field editors --- .../designs/[projectTypeId]/findingfields.vue | 20 ++++++++++++++++--- .../designs/[projectTypeId]/reportfields.vue | 16 ++++++++++++++- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/designs/[projectTypeId]/findingfields.vue b/frontend/src/pages/designs/[projectTypeId]/findingfields.vue index d1553ee9c..406c39c07 100644 --- a/frontend/src/pages/designs/[projectTypeId]/findingfields.vue +++ b/frontend/src/pages/designs/[projectTypeId]/findingfields.vue @@ -20,7 +20,7 @@ @@ -31,6 +31,9 @@ link :ripple="false" > + @@ -49,7 +52,7 @@ - + @@ -64,7 +67,12 @@ class="draggable-item" :ripple="false" > - {{ f.id }} + + @@ -206,4 +214,10 @@ function deleteField(fieldId: string) { .draggable-item { cursor: grab; } + +:deep(.v-list-item__prepend) { + .v-list-item__spacer { + width: 0.5em; + } +} diff --git a/frontend/src/pages/designs/[projectTypeId]/reportfields.vue b/frontend/src/pages/designs/[projectTypeId]/reportfields.vue index 2ae7f7206..5efe32939 100644 --- a/frontend/src/pages/designs/[projectTypeId]/reportfields.vue +++ b/frontend/src/pages/designs/[projectTypeId]/reportfields.vue @@ -26,6 +26,9 @@ link class="draggable-handle" > +