From 46332b8142bdb1991fc0bc987f84b443134e1a73 Mon Sep 17 00:00:00 2001 From: geni_jaho Date: Wed, 17 Jan 2024 01:09:03 +0100 Subject: [PATCH] Add shortcuts to tagging page and improved usability of tagging inputs --- resources/js/Components/TagBox.vue | 5 +++- resources/js/Components/Tooltip.vue | 20 ++++++++++++++++ resources/js/Pages/Photo/Show.vue | 37 +++++++++++++++++++++++++---- 3 files changed, 57 insertions(+), 5 deletions(-) create mode 100644 resources/js/Components/Tooltip.vue diff --git a/resources/js/Components/TagBox.vue b/resources/js/Components/TagBox.vue index 31635d03..60c95c39 100644 --- a/resources/js/Components/TagBox.vue +++ b/resources/js/Components/TagBox.vue @@ -12,6 +12,7 @@ import { const props = defineProps({ items: Array, modelValue: Object, + autofocus: Boolean, }); defineEmits(['update:modelValue']); @@ -44,8 +45,10 @@ let filteredItems = computed(() => { > + + + + \ No newline at end of file diff --git a/resources/js/Pages/Photo/Show.vue b/resources/js/Pages/Photo/Show.vue index bc26cc8c..481834a9 100644 --- a/resources/js/Pages/Photo/Show.vue +++ b/resources/js/Pages/Photo/Show.vue @@ -1,6 +1,6 @@