From e47fa9a4eb67bb7460a2355004430a083aca04f0 Mon Sep 17 00:00:00 2001 From: t11r <1674104+t11r@users.noreply.github.com> Date: Sun, 1 Oct 2023 22:40:38 +0200 Subject: [PATCH] Fix button not closing popup, reduce redundancy Since v-click-outside trumps touch listeners, we need to move the directive to a common parent element and change the DOM tree accordingly. Otherwise, the button does not close the popup on touch. Extend associated e2e tests. The pagination buttons' DOM is now identical for large and small screens, so move them to a separate component. --- src/components/AppHeader.vue | 401 +++++++++------------------ src/components/PaginationButtons.vue | 67 +++++ src/styles/sections/header.scss | 44 +-- tests/e2e/pagination.spec.js | 19 +- 4 files changed, 239 insertions(+), 292 deletions(-) create mode 100644 src/components/PaginationButtons.vue diff --git a/src/components/AppHeader.vue b/src/components/AppHeader.vue index 06a98613..142b2d11 100644 --- a/src/components/AppHeader.vue +++ b/src/components/AppHeader.vue @@ -28,72 +28,13 @@ -
- - - - - - - - - - - -
+ -
+
-
- -
-
- - - - - - - - - - - - - - -
- -
- - - -
- - - - - - - - - - - +
+ + + + + + + + + + + + + + +
+ +
+ + + +
+ +
diff --git a/src/components/PaginationButtons.vue b/src/components/PaginationButtons.vue new file mode 100644 index 00000000..24ee99c3 --- /dev/null +++ b/src/components/PaginationButtons.vue @@ -0,0 +1,67 @@ + + +