anki/ts
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
..
card-info Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
change-notetype Revert to old select in change notetype screen for now 2022-12-03 23:04:08 +10:00
components Rework spinner buttons (#2230) 2022-12-04 13:18:49 +10:00
congrats Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
deck-options Fix typed text not being saved if saving immediately 2022-12-03 22:41:17 +10:00
domlib Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
editable Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
editor Fix formatting inside selection not being removed 2022-12-03 21:41:54 +10:00
fields Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
graphs Use third grid column in graphs layout on wide screens (#2226) 2022-12-01 16:33:52 +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
import-csv Refactor Select component | Fix CSV import issue (#2227) 2022-12-01 19:24:26 +10:00
lib Rework spinner buttons (#2230) 2022-12-04 13:18:49 +10:00
mathjax Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
patches Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
reviewer Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
sql_format Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
sveltelib Fix glitchy animation of floating elements (#2224) 2022-12-01 15:45:52 +10:00
tag-editor Partially revert #2215 2022-12-04 11:37:16 +10:00
.gitignore Update eslint to 4.22.0 2021-04-22 19:19:39 +02:00
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 Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
page.html Load page script after body created (#1802) 2022-04-19 17:16:56 +10:00
README.md add add.sh helper for adding dependency and updating licenses 2020-12-31 12:20:51 +10:00
transform_ts.mjs Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
tsconfig.json Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
yarn.sh Move away from Bazel (#2202) 2022-11-27 15:24:20 +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