Skip to content

Commit cc1a7a6

Browse files
authored
Merge branch 'dev' into feat-code-refactoring
2 parents b848aca + 78d51f1 commit cc1a7a6

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
"standard-version": "^9.0.0",
161161
"terser": "^5.3.1",
162162
"vue": "^2.6.12",
163-
"vue-jest": "^3.0.6",
163+
"vue-jest": "^3.0.7",
164164
"vue-router": "^3.4.3",
165165
"vue-server-renderer": "^2.6.12",
166166
"vue-template-compiler": "^2.6.12"

src/components/modal/helpers/modal-manager.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,29 +159,29 @@ const ModalManager = /*#__PURE__*/ Vue.extend({
159159
// Adjust fixed content padding
160160
/* istanbul ignore next: difficult to test in JSDOM */
161161
selectAll(Selector.FIXED_CONTENT).forEach(el => {
162-
const actualPadding = getStyle(el, 'paddingRight')
162+
const actualPadding = getStyle(el, 'paddingRight') || ''
163163
setAttr(el, 'data-padding-right', actualPadding)
164164
setStyle(el, 'paddingRight', `${toFloat(getCS(el).paddingRight, 0) + scrollbarWidth}px`)
165165
body._paddingChangedForModal.push(el)
166166
})
167167
// Adjust sticky content margin
168168
/* istanbul ignore next: difficult to test in JSDOM */
169169
selectAll(Selector.STICKY_CONTENT).forEach(el => /* istanbul ignore next */ {
170-
const actualMargin = getStyle(el, 'marginRight')
170+
const actualMargin = getStyle(el, 'marginRight') || ''
171171
setAttr(el, 'data-margin-right', actualMargin)
172172
setStyle(el, 'marginRight', `${toFloat(getCS(el).marginRight, 0) - scrollbarWidth}px`)
173173
body._marginChangedForModal.push(el)
174174
})
175175
// Adjust <b-navbar-toggler> margin
176176
/* istanbul ignore next: difficult to test in JSDOM */
177177
selectAll(Selector.NAVBAR_TOGGLER).forEach(el => /* istanbul ignore next */ {
178-
const actualMargin = getStyle(el, 'marginRight')
178+
const actualMargin = getStyle(el, 'marginRight') || ''
179179
setAttr(el, 'data-margin-right', actualMargin)
180180
setStyle(el, 'marginRight', `${toFloat(getCS(el).marginRight, 0) + scrollbarWidth}px`)
181181
body._marginChangedForModal.push(el)
182182
})
183183
// Adjust body padding
184-
const actualPadding = getStyle(body, 'paddingRight')
184+
const actualPadding = getStyle(body, 'paddingRight') || ''
185185
setAttr(body, 'data-padding-right', actualPadding)
186186
setStyle(body, 'paddingRight', `${toFloat(getCS(body).paddingRight, 0) + scrollbarWidth}px`)
187187
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14092,10 +14092,10 @@ vue-hot-reload-api@^2.3.0:
1409214092
resolved "https://registry.yarnpkg.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz#532955cc1eb208a3d990b3a9f9a70574657e08f2"
1409314093
integrity sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==
1409414094

14095-
vue-jest@^3.0.6:
14096-
version "3.0.6"
14097-
resolved "https://registry.yarnpkg.com/vue-jest/-/vue-jest-3.0.6.tgz#27f79d75dcddbe6b3d8327ca1450a107b9cd6f38"
14098-
integrity sha512-VyuM8wR0vAlYCbPRY+PhIqRU5yUyBnUmwYTo4IFScs2+tiuis5VBItU0PGC8Wcx6qJwKB5jq5p7WFhabzMFMgQ==
14095+
vue-jest@^3.0.7:
14096+
version "3.0.7"
14097+
resolved "https://registry.yarnpkg.com/vue-jest/-/vue-jest-3.0.7.tgz#a6d29758a5cb4d750f5d1242212be39be4296a33"
14098+
integrity sha512-PIOxFM+wsBMry26ZpfBvUQ/DGH2hvp5khDQ1n51g3bN0TwFwTy4J85XVfxTRMukqHji/GnAoGUnlZ5Ao73K62w==
1409914099
dependencies:
1410014100
babel-plugin-transform-es2015-modules-commonjs "^6.26.0"
1410114101
chalk "^2.1.0"

0 commit comments

Comments
 (0)