anki/ts
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
..
card-info Show custom data in stats screen 2023-02-07 12:27:43 +10:00
change-notetype Fix non-Latin text wrapping in deck options dropdown (#2334) 2023-01-19 20:59:27 +10:00
components Revert "Prevent MathJax editor from closing unexpectedly when selecting text (#2484)" 2023-05-01 11:17:09 +10:00
congrats Add some left/right margins to congrats page 2022-12-04 13:58:50 +10:00
deck-options Add a fully-random review order 2023-04-11 16:16:45 +10:00
domlib Fix overwrite surround (#2247) 2022-12-09 10:10:58 +10:00
editable Prevent skewing of resized images in editor (#2488) 2023-05-05 19:16:06 +10:00
editor Hack around color setting failure in Qt6.5 2023-05-18 16:36:16 +10:00
fields Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
graphs Add emojis for graphs in hourly breakdown tooltip (#2464) 2023-04-17 16:16:10 +10:00
html-filter Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
icons Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
image-occlusion Fix misaligned image occlusions (#2512) 2023-05-23 11:59:50 +10:00
import-csv Show an error pop-up when csv import screen fails to load 2023-05-15 15:32:38 +10:00
lib Show an error pop-up when csv import screen fails to load 2023-05-15 15:32:38 +10:00
mathjax Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
patches Protobufjs fixed the relative path issue 2023-02-03 09:31:42 +10:00
reviewer Fix misaligned image occlusions (#2512) 2023-05-23 11:59:50 +10:00
sql_format Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
sveltelib Avoid firing click event in floatables when user drags the mouse 2023-05-01 11:44:24 +10:00
tag-editor Allow Shift+Tab to move focus from tag area to last field (#2458) 2023-03-28 14:13:21 +10:00
.gitignore
bundle_svelte.mjs Add env var to enable sourcemaps 2022-12-04 11:37:16 +10:00
bundle_ts.mjs Add env var to enable sourcemaps 2022-12-04 11:37:16 +10:00
esbuild_jest.mjs Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
jest.config.js Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
licenses.json Upgrade Svelte (#2506) 2023-05-18 17:04:58 +10:00
page.html Load page script after body created (#1802) 2022-04-19 17:16:56 +10:00
README.md
transform_ts.mjs Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
tsconfig.json Add es2019.string back to tsconfig 2023-05-11 15:10:27 +10:00
yarn.sh Fix yarn.sh failing with linked out folder 2023-03-31 13:08:59 +10:00

Anki's TypeScript and Sass dependencies. Some TS/JS code is also stored separately in ../qt/aqt/data/web/.

To update all dependencies:

./update.sh

To add a new dev dependency, use something like:

./add.sh -D @rollup/plugin-alias