Skip to content

Commit b5374a4

Browse files
Fix medium zoom on small devices (alshedivat#1084)
fixes alshedivat#1006
1 parent 2080e2c commit b5374a4

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
@@ -371,5 +371,5 @@ mdb:
371371
css: "sha256-jpjYvU3G3N6nrrBwXJoVEYI/0zw8htfFnhT9ljN3JJw="
372372
js: "sha256-NdbiivsvWt7VYCt6hYNT3h/th9vSTL4EDWeGs5SN3DA="
373373
medium_zoom:
374-
version: "1.0.6"
374+
version: "1.0.8"
375375
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)