From 228900ff9f33705f7def30ab90e3f65aa7e544e1 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 28 Nov 2021 17:33:08 +0000 Subject: [PATCH] Upgrade vue-js-modal to v2 --- package.json | 2 +- src/styles/_modal.scss | 38 ++++++++++++++++++-------------------- yarn.lock | 15 +++++++++++---- 3 files changed, 30 insertions(+), 25 deletions(-) diff --git a/package.json b/package.json index 0e7d812..fed87bc 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "vue-ctk-date-time-picker": "^2.5.0", "vue-feather-icons": "^5.1.0", "vue-i18n": "^8.26.7", - "vue-js-modal": "^1.3.33", + "vue-js-modal": "^2.0.1", "vue-mq": "^1.0.1", "vue-outside-events": "^1.1.3", "vue-router": "^3.5.3", diff --git a/src/styles/_modal.scss b/src/styles/_modal.scss index 0dfb184..460dfed 100644 --- a/src/styles/_modal.scss +++ b/src/styles/_modal.scss @@ -1,22 +1,20 @@ -.v--modal-overlay { - background: rgba(0, 0, 0, 0.5) !important; - - .v--modal-background-click { - display: flex; - justify-content: center; - align-items: center; - - .v--modal-box.v--modal { - top: initial !important; - left: initial !important; - width: auto !important; - height: auto !important; - max-width: 95vw; - max-height: 95vh; - overflow: auto; - padding: 30px; - border-radius: 3px; - background: var(--color-background); - } +.vm--container { + display: flex; + justify-content: center; + align-items: center; + .vm--overlay { + background: rgba(0, 0, 0, 0.5) !important; + } + .vm--modal { + top: initial !important; + left: initial !important; + width: auto !important; + height: auto !important; + max-width: 95vw; + max-height: 95vh; + overflow: auto; + padding: 30px; + border-radius: 3px; + background: var(--color-background); } } diff --git a/yarn.lock b/yarn.lock index 1ad76ee..b4c1b1c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9147,6 +9147,11 @@ requires-port@^1.0.0: resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" integrity sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8= +resize-observer-polyfill@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz#0e9020dd3d21024458d4ebd27e23e40269810464" + integrity sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg== + resolve-cwd@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-2.0.0.tgz#00a9f7387556e27038eae232caa372a6a59b665a" @@ -10773,10 +10778,12 @@ vue-jest@^3.0.5: tsconfig "^7.0.0" vue-template-es2015-compiler "^1.6.0" -vue-js-modal@^1.3.33: - version "1.3.35" - resolved "https://registry.yarnpkg.com/vue-js-modal/-/vue-js-modal-1.3.35.tgz#5f54de1a30a5f977121bfe6b2a1a5498bce2752a" - integrity sha512-DKtxUCW/oprM/ndn9h/cnVgsmqjQ/ARy5rH4q/11Pas04og2td+sltl91H/rlwXTwJIqWyt+lJizK5o4ErjWIQ== +vue-js-modal@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/vue-js-modal/-/vue-js-modal-2.0.1.tgz#748ba2533c5b5eaf8234c6320b148663357c1163" + integrity sha512-5FUwsH2zoxRKX4a7wkFAqX0eITCcIMunJDEfIxzHs2bHw9o20+Iqm+uQvBcg1jkzyo1+tVgThR/7NGU8djbD8Q== + dependencies: + resize-observer-polyfill "^1.5.1" "vue-loader-v16@npm:vue-loader@^16.1.0": version "16.8.3"