anki/ts/lib
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
..
i18n Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
bridgecommand.ts Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
cards.ts fix inverted SchedBuried and UserBuried in cards.ts 2021-12-20 12:57:35 +10:00
children-access.ts Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
context-keys.ts Fix shortcuts for tag actions not working (#2214) 2022-11-27 10:29:58 +10:00
cross-browser.ts Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
dom.ts Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
events.ts Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
functional.ts Last polishes for Surrounder class (#2017) 2022-08-17 16:00:37 +10:00
genfluent.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
globals.ts Split/Merge editor.py for its three use cases (#1581) 2022-01-12 14:51:43 +10:00
helpers.ts Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
image-import.d.ts update to latest rules_nodejs & switch to ts_project 2021-10-01 12:52:53 +10:00
keys.ts Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
nightmode.ts Live theme changes (#1497) 2021-11-25 07:17:41 +10:00
node.ts Reverse-engineer surrounding with execCommand (#1377) 2021-11-18 19:18:39 +10:00
parsing.ts Fix infinite update loop in editor with invalid input HTML (#1761) 2022-03-31 11:17:13 +10:00
platform.ts Rework spinner buttons (#2230) 2022-12-04 13:18:49 +10:00
postrequest.ts Use trailingComma: all setting in .prettierrc (#1435) 2021-10-19 09:06:00 +10:00
promise.ts Set "no-non-null-assertion: off" by default (#1475) 2021-11-04 11:42:51 +10:00
proto.ts Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
runtime-require.ts Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
shadow-dom.d.ts Reverse-engineer surrounding with execCommand (#1377) 2021-11-18 19:18:39 +10:00
shortcuts.ts Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
styling.ts Change how resizable images work (#1859) 2022-05-13 12:57:07 +10:00
time.test.ts
time.ts 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
typing.ts Use WithFloating for MathjaxOverlay (#2011) 2022-09-05 17:20:00 +10:00
ui.ts Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
uuid.ts Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
wrap.ts Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00