Skip to content

Commit

Permalink
Fix misaligned masks in image occlusion
Browse files Browse the repository at this point in the history
  • Loading branch information
dae authored and BrayanDSO committed Oct 23, 2023
1 parent be85b46 commit 06f2d69
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions AnkiDroid/src/main/assets/card_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,32 @@
<link rel="stylesheet" type="text/css" href="/assets/mathjax/mathjax.css">
<style>
::style::

/* copied from anki/ts/image-occlusion/review.scss */
#image-occlusion-container {
position: relative;
left: 50%;
transform: translate(-50%, 0);
max-height: calc(95vh - 40px);
}

#image-occlusion-container img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
max-width: unset;
max-height: unset;
}

#image-occlusion-canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
</style>
::script::
<script src="/assets/jquery.min.js"> </script>
Expand Down

0 comments on commit 06f2d69

Please sign in to comment.