anki/rslib
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
..
benches Switch Rust import style (#2330) 2023-01-18 21:39:55 +10:00
build Deck scoped dupe check (#2372) 2023-02-16 17:53:36 +10:00
i18n Update Rust deps 2023-03-31 14:38:24 +10:00
i18n_helpers Update Rust deps 2023-03-31 14:38:24 +10:00
linkchecker Update to Rumo's latest linkchecker code 2023-04-12 07:25:39 +10:00
src Fix misaligned image occlusions (#2512) 2023-05-23 11:59:50 +10:00
tests/support move linkchecker into separate crate 2021-12-20 17:27:43 +10:00
.gitignore initial Bazel conversion 2020-11-01 14:26:58 +10:00
bench.sh New TTS/AV tag handling (#1559) 2021-12-17 19:04:42 +10:00
Cargo.toml Bring chrono minimum back down for AnkiDroid 2023-04-12 08:45:51 +10:00
README.md Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00

Anki's Rust code.