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 Jan 7, 2023
1 parent dba651a commit 9ced140
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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="
1 change: 0 additions & 1 deletion assets/js/zoom.js
Original file line number Diff line number Diff line change
@@ -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 9ced140

Please sign in to comment.