Skip to content

Commit

Permalink
Fix medium zoom on small devices (alshedivat#1084)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohandebsarkar authored and hyesunyun committed Jan 11, 2023
1 parent 43972e3 commit 03b136b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Expand Up @@ -369,5 +369,5 @@ mdb:
css: "sha256-jpjYvU3G3N6nrrBwXJoVEYI/0zw8htfFnhT9ljN3JJw="
js: "sha256-NdbiivsvWt7VYCt6hYNT3h/th9vSTL4EDWeGs5SN3DA="
medium_zoom:
version: "1.0.6"
version: "1.0.8"
integrity: "sha256-EdPgYcPk/IIrw7FYeuJQexva49pVRZNmt3LculEr7zM="
1 change: 0 additions & 1 deletion assets/js/zoom.js
@@ -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.
})
Expand Down

0 comments on commit 03b136b

Please sign in to comment.