Anki/rslib/src
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
..
backend Fix sync client ignoring directories (#2490) 2023-05-08 11:40:57 +10:00
card Ensure state mutator runs after card is rendered (#2421) 2023-03-16 16:31:00 +10:00
card_rendering Implement TTS using windows crate (#2371) 2023-02-17 12:26:07 +10:00
collection Add a .with_desktop_media_paths() helper 2023-05-18 11:02:02 +10:00
config Bump Rust version 2023-03-31 14:11:33 +10:00
deckconfig Bump Rust version 2023-03-31 14:11:33 +10:00
decks Expose some collection methods already public in rslib backend (#2510) 2023-05-22 13:44:18 +10:00
error Feature image occlusion (#2367) 2023-03-29 12:33:19 +10:00
image_occlusion Fix misaligned image occlusions (#2512) 2023-05-23 11:59:50 +10:00
import_export Fix broken media importing in non-legacy apkg path 2023-05-18 11:33:01 +10:00
media Display a more informative message when attempting media op without folder 2023-05-18 10:48:25 +10:00
notes Expose some collection methods already public in rslib backend (#2510) 2023-05-22 13:44:18 +10:00
notetype Various tweaks to I/O code (#2478) 2023-04-19 15:30:18 +10:00
revlog Bump Rust version 2023-03-31 14:11:33 +10:00
scheduler Fix a panic when user sets a huge learning step 2023-05-11 09:10:22 +10:00
search Support prop queries in filtered decks 2023-05-20 10:49:00 +10:00
stats fix stats calendar incorrect due to daylight savings time (#2456) 2023-03-28 15:35:06 +10:00
storage Expose some collection methods already public in rslib backend (#2510) 2023-05-22 13:44:18 +10:00
sync Add a .with_desktop_media_paths() helper 2023-05-18 11:02:02 +10:00
tags Fix invalid ids on db check (#2445) 2023-03-19 10:58:35 +10:00
undo Fix invalid ids on db check (#2445) 2023-03-19 10:58:35 +10:00
adding.rs Switch Rust import style (#2330) 2023-01-18 21:39:55 +10:00
browser_table.rs Bump Rust version 2023-03-31 14:11:33 +10:00
cloze.rs Feature image occlusion (#2367) 2023-03-29 12:33:19 +10:00
dbcheck.rs Fix invalid ids on import (#2449) 2023-03-20 07:04:59 +10:00
findreplace.rs Fix invalid ids on db check (#2445) 2023-03-19 10:58:35 +10:00
i18n.rs drop the legacy enum from rslib, and pass separate module/message idx 2021-03-27 11:56:31 +10:00
io.rs Feature image occlusion (#2367) 2023-03-29 12:33:19 +10:00
latex.rs Switch Rust import style (#2330) 2023-01-18 21:39:55 +10:00
lib.rs Feature image occlusion (#2367) 2023-03-29 12:33:19 +10:00
links.rs Expose backend_proto publicly for AnkiDroid, and rename to pb 2022-06-27 15:27:53 +10:00
log.rs Update Rust deps (#2332) 2023-01-18 22:24:29 +10:00
markdown.rs Switch Rust import style (#2330) 2023-01-18 21:39:55 +10:00
ops.rs Feature image occlusion (#2367) 2023-03-29 12:33:19 +10:00
pb.rs Feature image occlusion (#2367) 2023-03-29 12:33:19 +10:00
preferences.rs Switch Rust import style (#2330) 2023-01-18 21:39:55 +10:00
prelude.rs Global new ignore review limit (#2417) 2023-03-06 19:06:12 +10:00
serde.rs Add ability to restore a notetype to its original configuration (#2472) 2023-04-18 14:07:51 +10:00
template.rs Switch Rust import style (#2330) 2023-01-18 21:39:55 +10:00
template_filters.rs Bump Rust version 2023-03-31 14:11:33 +10:00
tests.rs Add a .with_desktop_media_paths() helper 2023-05-18 11:02:02 +10:00
text.rs Move ascii_percent_encoding into a separate repo 2023-04-12 08:45:23 +10:00
timestamp.rs Add time of date to browser date columns 2023-03-26 14:49:49 +10:00
typeanswer.rs Fix excess missed markers in non-Latin text 2023-02-10 15:11:36 +10:00
types.rs update scheduling ops 2021-04-06 16:38:42 +10:00
version.rs Rework syncing code, and replace local sync server (#2329) 2023-01-18 12:43:46 +10:00