mirror of
https://github.com/ankitects/anki.git
synced 2026-03-30 15:12:35 -04:00
main
Currently, the direction in which a card is rendered is not stable by default. If the UI of Anki is English, text direction is left-to-right by default. If the UI of Anki is Arabic, text direction is right-to-left by default. Although this can be changed from the settings (e.g. by changing css), the card direction should be stable by default, being viewed in the same way regardless of the direction of the UI. The direction of the card must be the same, not dependent on the UI language. This commit solves the issue by adding `dir="auto"` by default for all cards. It will not break existing cards that specify a direction via css or html, but it will make cards that don't specify a direction stable. I tested adding `<div dir="auto">` to the card template and found that it makes the direction stable, regardless of the direction of the UI. --------- Co-authored-by: Fernando Lins <1887601+fernandolins@users.noreply.github.com>
Anki®
This repo contains the source code for the computer version of Anki.
About
Anki is a spaced repetition program. Please see the website to learn more.
Getting Started
Anki Betas
If you'd like to try development builds of Anki but don't feel comfortable building the code, please see Anki betas
Developing
For more information on building and developing, please see Development.
Contributing
Want to contribute to Anki? Check out the Contribution Guidelines.
Anki Contributors
License
Anki's license: LICENSE
Description
Languages
Rust
46.2%
Python
29.3%
Svelte
11.3%
TypeScript
11.1%
SCSS
1%
Other
0.8%