Anki is a smart spaced repetition flashcard program
Find a file
Damien Elmes 3d8c7f5ea1
Rework spinner buttons (#2230)
* Align spinner buttons on right

The initial rationale for splitting them up was to be more touch friendly,
but we won't be able to use them on mobile anyway due to the conflicts
with double taps zooming in. On desktop, having them apart requires more
mouse movement when overshooting, so it's better to have them in one
place.

Text is now left-aligned again, which matches our other inputs like
learning steps.

The left/right buttons have been changed to up/down, which matches our
Qt spinners, and avoids RTL concerns.

This commit also removes the border on hover/select - it caused the
left-aligned content to flicker, and didn't look correct. Perhaps we could
add it back in a better way in the future.

* Hide spinner buttons on mobile devices

Tapping on them conflicts with the page zoom gesture.

* Remove min-height on spinner buttons

* Only show spinner on hover

Since they're only useful with a mouse, and only useful when they're
under the cursor, hiding them when focused keeps things less cluttered.
2022-12-04 13:18:49 +10:00
.buildkite Fix cargo-deny exclusion 2022-11-30 13:52:49 +10:00
.cargo Re-enable formatting for .toml files 2022-11-28 09:16:28 +10:00
.config Re-enable formatting for .toml files 2022-11-28 09:16:28 +10:00
.github/ISSUE_TEMPLATE Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.vscode.dist Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
build Add env var to enable sourcemaps 2022-12-04 11:37:16 +10:00
cargo Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
docs Fix TTS handling on Windows 2022-11-29 13:04:51 +10:00
ftl Use workspace package info in more crates; mark private for cargo-deny 2022-11-30 12:19:56 +10:00
proto Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
pylib Pin chrono; update compatible Rust crates 2022-11-30 12:38:10 +10:00
python Fix TTS handling on Windows 2022-11-29 13:04:51 +10:00
qt Add profile manager setting to force custom qt stylesheets (#2233) 2022-12-04 12:54:39 +10:00
rslib Cap calculated hard delay secs at again delay + 1d (#2229) 2022-12-03 18:54:40 +10:00
sass Make button color and hover gradient fit together (#2232) 2022-12-04 11:48:09 +10:00
tools Add env var to enable sourcemaps 2022-12-04 11:37:16 +10:00
ts Rework spinner buttons (#2230) 2022-12-04 13:18:49 +10:00
.deny.toml Add cargo-deny config 2022-11-30 12:38:10 +10:00
.dprint.json Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
.eslintrc.js Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.gitattributes try again to improve GitHub's language stats 2021-01-20 13:20:45 +10:00
.gitignore Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.gitmodules Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.isort.cfg Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.mypy.ini Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.prettierignore Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
.prettierrc Mathjax editor improvements (#1502) 2021-11-23 10:27:32 +10:00
.pylintrc Fix TTS handling on Windows 2022-11-29 13:04:51 +10:00
.rustfmt-empty.toml Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.rustfmt.toml Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.version Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
Cargo.lock Update incompatible crates 2022-11-30 12:38:10 +10:00
Cargo.toml Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
CONTRIBUTORS Fix typos (#2210) 2022-11-24 20:18:57 +10:00
LICENSE move aqt_data into source folder; implement wheel building 2020-11-04 12:14:03 +10:00
ninja Add env var to enable sourcemaps 2022-12-04 11:37:16 +10:00
package.json Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
pkgkey.asc add public key for release signing 2018-09-18 10:40:45 +10:00
README.md fix build badge 2021-06-24 09:21:56 +10:00
run Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
run.bat Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
rust-toolchain.toml Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
SECURITY.md add SECURITY.md 2021-09-22 22:55:19 +10:00
yarn.lock Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00

Anki

Build status

This repo contains the source code for the computer version of Anki.

If you'd like to try development builds of Anki but don't feel comfortable building the code, please see https://betas.ankiweb.net/

For more information on building, please see Development.