Damien Elmes
8e5e277ee4
don't wait for images before revealing
...
Currently there's a nasty blink when revealing the answer if the answer
has images on it, as the entire card is hidden, and not shown again until
the images have loaded. This patch removes the wait, so text should appear
more quickly, but it will mean the images may pop in.
We still wait for images before scrolling, to avoid a scroll to the wrong
location.
There's plenty of scope to improve this further - preloading images,
rendering MathJax in advance, etc, but those changes will need to wait
for now. #1120 has some related discussion.
2021-06-24 12:22:25 +10:00
Damien Elmes
114eec6585
allow customization of default search text
...
https://forums.ankiweb.net/t/whats-the-default-search-when-browsing-now-also-how-do-i-choose-to-browse-current-deck/8922
2021-06-24 11:24:30 +10:00
Damien Elmes
d85f978b72
drop crash.log support
...
I don't recall it ever helping to resolve a bug, and presumably we can
still use it in the future via the PYTHONFAULTHANDLER env var if
necessary.
2021-06-24 10:08:31 +10:00
Damien Elmes
df53f7f789
fix build badge
2021-06-24 09:21:56 +10:00
Damien Elmes
76b005991e
Merge pull request #1207 from hgiesel/deckoptionssections2
...
Deck Options refactoring
2021-06-22 09:36:15 +10:00
Damien Elmes
c840b8dbb2
fix svelte-check error by tweaking formatting
...
🤷
2021-06-22 09:27:37 +10:00
Damien Elmes
a62b3dd10f
Merge pull request #1247 from hgiesel/pinnedfieldsfix
...
Call update_notetype_legacy after toggling sticky
2021-06-22 09:10:14 +10:00
Henrik Giesel
08402a2d72
Have swithes be blue when checked in night mode
2021-06-21 22:37:37 +02:00
Henrik Giesel
214c585518
Replace dash with underscore for night_mode_lib
2021-06-21 21:51:15 +02:00
Henrik Giesel
13970425bf
Add night_mode_lib as SCSS target
2021-06-21 21:44:23 +02:00
Henrik Giesel
8a2ac57cc5
Always show spinning reverse icon on mobile
2021-06-21 21:35:20 +02:00
Henrik Giesel
e5978d7ffe
Remove use of bootstrap-dark.night-mode for deckoptions
...
The CSS for the Switch component had a conflict regarding background color
Also generally it makes sense to put the CSS into the components
2021-06-21 21:16:40 +02:00
Henrik Giesel
e8a6add60b
Position Revert/Gear button on the left of the label
...
+ Make the reverse arrow spin
2021-06-21 20:48:33 +02:00
Henrik Giesel
4e4683a122
Make gear button show dropdown menu
2021-06-21 20:24:15 +02:00
Henrik Giesel
48b7ae3cd0
Revert button with gear icon, that shows revert dropdown item
2021-06-21 19:11:10 +02:00
Henrik Giesel
292ba665af
Associate Switch labels with their respective switches
2021-06-21 18:15:41 +02:00
Henrik Giesel
909502bb0a
Put tooltip only on the info badge
2021-06-21 17:48:18 +02:00
Damien Elmes
f92bf490ab
remove explicit line-height
...
It was causing text in dropdowns to be slightly truncated
(eg "Tag Only")
2021-06-21 17:02:48 +02:00
Damien Elmes
ecfa01072b
remove left pad on switches
2021-06-21 17:02:48 +02:00
Damien Elmes
207e0126a0
decrease margins in deck options top sticky bar
2021-06-21 17:02:48 +02:00
Henrik Giesel
131d29ae05
Add g-1 class to DeckoptionsPage. Include transitions.scss
...
* Modal misbehaved before
2021-06-21 17:02:48 +02:00
Henrik Giesel
abca240de7
Disable RevertButton tooltip on touch devices
...
The tooltip will show after you clicked Revert. There's no sensible way
to show the tooltip, without also triggering the functionality
2021-06-21 17:02:48 +02:00
Henrik Giesel
98c57ce3f8
Make TriggerType an input argument for WithTooltip
2021-06-21 17:02:48 +02:00
Henrik Giesel
62b4b4c12c
Increase padding on tooltips + Remove erroneous closing angle bracket
2021-06-21 17:02:48 +02:00
Henrik Giesel
728e2e682b
Implement Switch and SwitchRow
2021-06-21 17:02:48 +02:00
Henrik Giesel
9a00ef5a81
Properly dispose of tooltip resources when unmounting
2021-06-21 17:02:48 +02:00
Henrik Giesel
97692e4c28
Reverse RevertButton being on the right side
2021-06-21 17:02:48 +02:00
Henrik Giesel
3227346f53
Alternative solution to markdown tooltips creating bottom margin
2021-06-21 17:02:48 +02:00
Henrik Giesel
3232712748
Update RevertButton to use Badge and WithTooltip
2021-06-21 17:02:48 +02:00
Henrik Giesel
a035679171
Add a tooltip showing delay of a quarter second
2021-06-21 17:02:48 +02:00
Henrik Giesel
880546c895
Add back info circles, remove underlines
2021-06-21 17:02:48 +02:00
Henrik Giesel
44562c3250
Update NotetypeSelector to use Item instead of ButtonToolbarItem
2021-06-21 17:02:48 +02:00
Henrik Giesel
d45e6445cf
Fix tooltip regression
2021-06-21 17:02:48 +02:00
Henrik Giesel
af53ccfb36
Have decimal keyboard for SpinBoxFloat
2021-06-21 17:02:48 +02:00
Henrik Giesel
0c49f6c08b
Have numeric keyboard for SpinBox
2021-06-21 17:02:48 +02:00
Henrik Giesel
4d7bdbce1f
Switch Revert button and input element position
2021-06-21 17:02:48 +02:00
Henrik Giesel
67e0b67d17
Implement WithTooltip
2021-06-21 17:02:48 +02:00
Henrik Giesel
11c5476ae3
Wrap label and HelpPopup into span
...
Avoids HelpPopup in a differnt column upon label wrapping
2021-06-21 17:02:48 +02:00
Henrik Giesel
21ab484f21
Make revert button horizontal padding smaller
2021-06-21 17:02:48 +02:00
Henrik Giesel
99e7a3c436
Have colors inherit for badges
2021-06-21 17:02:48 +02:00
Henrik Giesel
dba85e7755
Add down-arrow SASS function
2021-06-21 17:02:48 +02:00
Henrik Giesel
65f0e7a4ea
Use custom down arrow for both SelectButton and EnumSelector
2021-06-21 17:02:48 +02:00
Henrik Giesel
8d32528e8d
Put Col types into col.ts
2021-06-21 17:02:48 +02:00
Henrik Giesel
894c84f4d3
Fix formatting
2021-06-21 17:02:48 +02:00
Henrik Giesel
e030e6f656
Rename SectionItem to just Item and use across option sections
2021-06-21 17:02:46 +02:00
Henrik Giesel
f895919435
Import API from all option sections
2021-06-21 17:01:45 +02:00
Henrik Giesel
2728b5fa63
Add Container.svelte
2021-06-21 17:01:45 +02:00
Henrik Giesel
cf9bba0807
Remove SCSS from ConfigEditor
2021-06-21 17:01:45 +02:00
Henrik Giesel
1bb59198dd
Implement CheckBoxRow and SpinBoxFloatRow
2021-06-21 17:01:45 +02:00
Henrik Giesel
5fa850703f
Implement EnumSelectorRow and StepsInputRow
2021-06-21 17:01:45 +02:00