Matthias M
98788ca52e
Merge branch 'ankitects:main' into main
2021-05-23 01:45:42 +02:00
Matthias M
0063dcb3c8
Add CSS variable --button-bg
...
might be useful for add-on developers.
2021-05-23 01:18:00 +02:00
Matthias M
c612c41023
Make legacy buttons look like Svelte buttons
...
with extra night mode handling.
2021-05-23 00:50:02 +02:00
Matthias M
95cfd7e0b5
Invert legacy button content in night mode
...
for better visibility.
2021-05-22 22:40:21 +02:00
Matthias M
39aeaa141e
Remove unnecessary Linux .button styling
2021-05-22 22:33:24 +02:00
Matthias M
8db2a4cf11
Remove hard-coded values from .button
...
so that dynamic border-radius gets used instead.
2021-05-22 22:29:50 +02:00
Damien Elmes
cf1da4b264
fix missing cumulative overlays in graphs
2021-05-22 10:19:13 +10:00
Damien Elmes
4849ca17e7
add a hack to handle sass resolution in svelte in external workspace
2021-05-20 15:32:06 +10:00
Damien Elmes
e8fa170bab
experiment with bottom border on deck option headings
2021-05-20 14:54:07 +10:00
Damien Elmes
4fc701eb1b
fix fields/cards font size & too-large toolbar on high DPI Windows
...
- enable default_css on editor again, so that the html element
is set to the system font size. If this is bringing in unwanted styling,
maybe we can come up with a different solution that just adjusts the
fonts
- make toolbar size relative to html font size, instead of hard-coding
it
2021-05-20 13:15:17 +10:00
Damien Elmes
3f232b6ba1
make sticky bar border a bit fainter
2021-05-20 12:49:07 +10:00
Damien Elmes
2ecd91eeb2
fix invisible dropdown arrow in night mode; use bootstrap styling in top
2021-05-20 12:43:47 +10:00
Damien Elmes
878131d201
apply the left padding in one place
2021-05-19 20:02:04 +10:00
Damien Elmes
991695b7f6
use standard toolbar colors for legacy items
2021-05-19 19:58:12 +10:00
Damien Elmes
5036e25399
fix broken night mode styling
...
#1172 removed the select styling, but EnumSelector has not been updated
yet
2021-05-19 19:48:31 +10:00
Damien Elmes
5c9f483cdc
move deck name into window title; v-center sticky bar
2021-05-19 19:34:15 +10:00
Damien Elmes
f93075628a
increase toolbar size by 5px and use the default font sizes
...
Workaround for #1174 for now
2021-05-19 19:23:32 +10:00
Damien Elmes
818fe75721
simplify previous patch
...
The default 1 rem is fine, but we need to apply the default font size
to the html element instead of the body for the definition of rem to
update.
Fixes #1174
2021-05-19 19:06:20 +10:00
Damien Elmes
45edc42959
fix inconsistent font sizes
...
fixes #1174
2021-05-19 19:00:09 +10:00
Damien Elmes
0804771626
indent headings and bold them to match graph style
2021-05-19 17:20:01 +10:00
Damien Elmes
c7e401d687
tweak left margin, and checkbox top margin
2021-05-19 17:18:28 +10:00
Damien Elmes
2135cbd001
left align input boxes; decrease width
2021-05-19 16:41:19 +10:00
Damien Elmes
60ef1c35eb
show note about old options screen if any add-ons are installed
2021-05-19 16:20:25 +10:00
Damien Elmes
390379ed62
disable svelte-check on Windows for now
2021-05-19 11:45:02 +10:00
Henrik Giesel
20d117e315
Add back global CSS for input
2021-05-18 19:30:43 +02:00
Henrik Giesel
5eabcdc987
Allow any in deckoptions/index until typing is provided
2021-05-18 19:21:25 +02:00
Henrik Giesel
8779a8a025
Make blur a proper event listener
2021-05-18 19:19:05 +02:00
Henrik Giesel
a602561612
Make SaveButton functional
2021-05-18 18:55:22 +02:00
Henrik Giesel
1582bdb31e
Make styling on select button behave correctly
2021-05-18 17:50:18 +02:00
Henrik Giesel
30d246d74b
WIP: Use our components in deckoptions sticky bar
2021-05-18 16:32:29 +02:00
Henrik Giesel
777d774545
Use StickyBar in deckoptions
2021-05-18 14:13:11 +02:00
Damien Elmes
43f1750eac
update jsdoc
...
https://github.com/jsdoc/jsdoc/issues/1908
2021-05-18 09:22:57 +10:00
Damien Elmes
5bd3884a71
support card state mutator in test scheduler
...
Documentation to come
2021-05-17 16:59:02 +10:00
Damien Elmes
957202a704
fix review sort order being shown in v2 scheduler options
2021-05-16 21:50:51 +10:00
Damien Elmes
a345ba1347
support markdown in JS tooltips
...
`marked` adds about 44k to the bundle size unfortunately :-(
2021-05-16 21:43:58 +10:00
Damien Elmes
fe5dee2a67
rework various aspects of the test scheduler
...
- Daily limits are no longer inherited - each deck limits its own
cards, and the selected deck enforces a maximum limit.
- Fetching of review cards now uses a single query, and sorts in advance.
In collections with a large number of overdue cards and decks, this is
faster than iterating over each deck in turn.
- Include interday learning count in review count & review limit, and
allow them to be buried.
- Warn when parent review limit is lower than child deck in deck options.
- Cap the new card limit to the review limit.
- Add option to control whether new card fetching short-circuits.
2021-05-16 20:23:07 +10:00
Damien Elmes
5f7590c4b4
expose new sorting options in test scheduler options; move things around
2021-05-13 15:23:16 +10:00
Damien Elmes
9ff8727e68
pass sort options into test scheduler
...
- split new card fetch order and subsequent sort order; use latter
when building queues
- default to spacing siblings when burying is off, with options to
show each sibling in turn, and shuffle the fetched cards
2021-05-13 15:21:20 +10:00
Damien Elmes
4d51a13259
roll back bootstrap until 5.0.1 comes out
...
Modals are currently broken:
https://github.com/twbs/bootstrap/issues/33840
2021-05-11 13:06:03 +10:00
Damien Elmes
2dab3f0487
disable broken svelte_check test on Windows for now
...
Likely caused by a lack of sandboxing on Windows, causing the generated
.d.ts files to be visible to svelte_check, and being picked up in
preference over the .svelte file.
2021-05-08 12:15:49 +10:00
Damien Elmes
6dd78b0ea5
Merge pull request #1159 from hgiesel/newapproach
...
Prefer idiomatic Svelte features over dynamic components
2021-05-08 11:35:31 +10:00
Henrik Giesel
755b39b59e
Check for id when inserting dynamic elements
...
* I'm not sure it behaved, if there were multiple elements
inserted by different add-ons into the same container
2021-05-07 16:50:17 +02:00
Henrik Giesel
c894d32c14
Fix remaining errors in editor/*.svelte files
2021-05-07 15:10:28 +02:00
Henrik Giesel
9379477e09
Use MouseEvent instead of KeyboardEvent in WithShortcut
...
* otherwise the disabled button will allow it to pass through
2021-05-07 14:46:08 +02:00
Henrik Giesel
3d4224a886
Rename Detachable.detach to detached
2021-05-07 14:31:08 +02:00
Damien Elmes
7f5972c080
update license checker for security issue in dependency
2021-05-07 18:50:25 +10:00
Damien Elmes
5213ff8dbb
update JS deps
...
Unfortunately we're still stuck with a security alert about underscore,
because the latest jsdoc uses an old underscore, and protobufjs depends
on it.
https://github.com/jsdoc/jsdoc/issues/1908
2021-05-07 18:03:22 +10:00
Damien Elmes
4fe03e1f22
tweak hover css to work with latest js deps
2021-05-07 17:57:28 +10:00
Henrik Giesel
cd6599c301
Fix module name formatting
2021-05-07 02:14:54 +02:00
Henrik Giesel
1e5feffba0
Fix Preview tooltip
2021-05-07 02:04:44 +02:00