Fix medium zoom on small devices (#1084)

fixes #1006
This commit is contained in:
Rohan Deb Sarkar 2023-01-07 21:37:54 +05:30 committed by GitHub
parent 69e013b9a0
commit 3a4de50705
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -371,5 +371,5 @@ mdb:
css: "sha256-jpjYvU3G3N6nrrBwXJoVEYI/0zw8htfFnhT9ljN3JJw="
js: "sha256-NdbiivsvWt7VYCt6hYNT3h/th9vSTL4EDWeGs5SN3DA="
medium_zoom:
version: "1.0.6"
version: "1.0.8"
integrity: "sha256-EdPgYcPk/IIrw7FYeuJQexva49pVRZNmt3LculEr7zM="

View File

@ -1,7 +1,6 @@
// Initialize medium zoom.
$(document).ready(function() {
medium_zoom = mediumZoom('[data-zoomable]', {
margin: 100,
background: getComputedStyle(document.documentElement)
.getPropertyValue('--global-bg-color') + 'ee', // + 'ee' for trasparency.
})