From 0486642ab1d4c18f1973033a0a39c6a88c4841fe Mon Sep 17 00:00:00 2001 From: undergroundwires Date: Fri, 12 Apr 2024 17:04:17 +0200 Subject: [PATCH] Fix inability to tap outside modal on mobile This commit addresses touch target size issues on mobile devices by adjusting modal margins. The larger margin allows for easier interaction for modal dialogs by tapping outside the modal area on smaller screens. Key changes: - Introduce 30px margin on larger screens and 20px on smaller devices around modals, adhering to accessibility guidelines. - Remove `max-height: 90vh;` in favor of consistent vertical margins, centralizing the spacing control via the `margin` property. - Remove `max-height: 90v;` used to display scroll-bars as the vertical margin is now handled by `margin` property in single place. --- .../components/Shared/Modal/ModalContainer.vue | 3 ++- .../components/Shared/Modal/ModalContent.vue | 13 ++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/presentation/components/Shared/Modal/ModalContainer.vue b/src/presentation/components/Shared/Modal/ModalContainer.vue index eb6f434e5..9ff005907 100644 --- a/src/presentation/components/Shared/Modal/ModalContainer.vue +++ b/src/presentation/components/Shared/Modal/ModalContainer.vue @@ -9,7 +9,6 @@ @click="onBackgroundOverlayClick" /> @@ -138,6 +137,8 @@ export default defineComponent({