anki/ts/reviewer
Damien Elmes 7686cb8de8
Fix misaligned image occlusions (#2512)
* Cloze styling is not required in I/O notetype

* Use raw string for IO template

* Rename to notetype.css and use more specific ids

* Move internal i/o styling into runtime

Storing it in the notetype makes it difficult to make changes, and
makes it easier for the user to break.

* Fix misaligned occlusions

At larger screen sizes, the canvas was not increasing above its configured
size, so it ended up being placed top center instead of expanding to fit
the entire container area.

To resolve this, both the image and canvas are forced to the container
size, and the container is constrained to the size of the viewport,
with the same aspect ratio as the image.

Closes #2492
2023-05-23 11:59:50 +10:00
..
answering.ts Ensure state mutator runs after card is rendered (#2421) 2023-03-16 16:31:00 +10:00
image_occlusion.ts Fix misaligned image occlusions (#2512) 2023-05-23 11:59:50 +10:00
images.ts Refactor CSS/image preloading; implement custom font preloading (#2356) 2023-05-10 13:26:02 +10:00
index_wrapper.ts Use eslint for sorting our imports (#1637) 2022-02-04 18:36:34 +10:00
index.ts Fix page scrolling when input box loses focus (#2508) 2023-05-22 13:57:39 +10:00
preload.ts Fix custom font preloading sometimes not working (#2493) 2023-05-11 14:10:29 +10:00
reviewer_extras.ts Feature image occlusion (#2367) 2023-03-29 12:33:19 +10:00
reviewer.scss Fix misaligned image occlusions (#2512) 2023-05-23 11:59:50 +10:00
tsconfig.json Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00