Skip to content

Commit 90942d2

Browse files
rohandebsarkarchertianser
authored andcommitted
Fix medium zoom on small devices (alshedivat#1084)
fixes alshedivat#1006
1 parent 5f21109 commit 90942d2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,5 +370,5 @@ mdb:
370370
css: "sha256-jpjYvU3G3N6nrrBwXJoVEYI/0zw8htfFnhT9ljN3JJw="
371371
js: "sha256-NdbiivsvWt7VYCt6hYNT3h/th9vSTL4EDWeGs5SN3DA="
372372
medium_zoom:
373-
version: "1.0.6"
373+
version: "1.0.8"
374374
integrity: "sha256-EdPgYcPk/IIrw7FYeuJQexva49pVRZNmt3LculEr7zM="

assets/js/zoom.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Initialize medium zoom.
22
$(document).ready(function() {
33
medium_zoom = mediumZoom('[data-zoomable]', {
4-
margin: 100,
54
background: getComputedStyle(document.documentElement)
65
.getPropertyValue('--global-bg-color') + 'ee', // + 'ee' for trasparency.
76
})

0 commit comments

Comments
 (0)