From 42cdf208faadc405c0492a0120dde76c7d9f0f0c Mon Sep 17 00:00:00 2001 From: Philipp Reinking Date: Fri, 13 Sep 2024 12:01:09 +0200 Subject: [PATCH] fix #169 file upload area now clickable for mobile users --- .../js/forms/classic/components/UploadFileItem.vue | 6 +++--- .../js/forms/classic/interactions/FileAction.vue | 14 ++++++++++---- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/resources/js/forms/classic/components/UploadFileItem.vue b/resources/js/forms/classic/components/UploadFileItem.vue index ea4becb8..8bebbbd4 100644 --- a/resources/js/forms/classic/components/UploadFileItem.vue +++ b/resources/js/forms/classic/components/UploadFileItem.vue @@ -15,12 +15,12 @@ > -
-
+
+
{{ file.name }}
-
+
{{ fileSize }}
- {{ - t("files_drop") - }} + {{ t("files_drop") }}
@@ -48,6 +51,7 @@ import { useFileDialog, useDropZone } from "@vueuse/core"; import UploadFileItem from "@/forms/classic/components/UploadFileItem.vue"; import { computed, ref } from "vue"; import { useI18n } from "vue-i18n"; +import { useMobileDetection } from "@/utils/useMobileDetection"; const store = useConversation(); const { t } = useI18n(); @@ -62,6 +66,8 @@ const emit = defineEmits<{ (event: "update"): void; }>(); +const { isMobileDevice } = useMobileDetection(); + const dropZoneRef = ref(); const currentFiles = computed(() => {