Commit graph

8002 commits

Author SHA1 Message Date
Henrik Giesel
1599526726 Make Codable abstract more over its textarea v codemirror when using fieldHTML 2021-06-24 19:55:50 +02:00
Henrik Giesel
9f0343f591 Make EditingArea intialize this.fieldHTML, not Editable.fieldHTML 2021-06-24 19:15:07 +02:00
Damien Elmes
cadf499216 fix pin toggle causing saved tags to get lost 2021-06-24 20:16:21 +10:00
Damien Elmes
4ba0c8d169 mobile fixes for js field
Without the overflow change, the page viewport gets messed up.
And for some reason specifying the font size as 1rem does not work;
it needs to be explicitly set to 16px to prevent zoom in.
2021-06-24 18:06:22 +10:00
Damien Elmes
04d6a89216 disable smart quotes and capitalization in js field
+ use bootstrap styling
2021-06-24 18:00:06 +10:00
Damien Elmes
249e009f27 cope with collections where latexsvg is not a bool 2021-06-24 15:29:21 +10:00
Damien Elmes
2f25a969e4 report object type where json decode fails 2021-06-24 15:28:24 +10:00
Damien Elmes
606e2d37fc fix release builds 2021-06-24 15:01:32 +10:00
Damien Elmes
309748812b update translations 2021-06-24 14:48:48 +10:00
Damien Elmes
efd6d47a05 v3 scheduler: experimental -> beta 2021-06-24 14:46:09 +10:00
Damien Elmes
b959feb6e5 expose scheduler js option in deck config 2021-06-24 14:38:10 +10:00
Damien Elmes
841250533d gear -> revert icon
https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/30
2021-06-24 13:07:03 +10:00
Damien Elmes
a277dc96ba Merge pull request #1248 from ankitects/revert-on-right
Move deck options revert button to right; hide when inactive
2021-06-24 13:01:57 +10:00
Damien Elmes
92ba27a00c Merge pull request #1249 from hgiesel/dropdownfix
Adapt use of createDropdown for editor buttons
2021-06-24 12:31:20 +10:00
Damien Elmes
66aa225965 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
4ffca62afe 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
f4111fca00 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
c765cbc6a0 fix build badge 2021-06-24 09:21:56 +10:00
Henrik Giesel
e5709ec90c Adapt use of createDropdown for editor buttons 2021-06-22 17:31:06 +02:00
Damien Elmes
7416660c59 move revert button to the right
With a confirmation step now, accidental taps when scrolling shouldn't
be an issue, and it leaves more room for the text.
2021-06-22 09:41:31 +10:00
Damien Elmes
7e96005d54 hide revert button when not active 2021-06-22 09:38:28 +10:00
Damien Elmes
504eca1375 Merge pull request #1207 from hgiesel/deckoptionssections2
Deck Options refactoring
2021-06-22 09:36:15 +10:00
Damien Elmes
15825f5629 fix svelte-check error by tweaking formatting
🤷
2021-06-22 09:27:37 +10:00
Damien Elmes
020e828a2b Merge pull request #1247 from hgiesel/pinnedfieldsfix
Call update_notetype_legacy after toggling sticky
2021-06-22 09:10:14 +10:00
Henrik Giesel
40058b49b2 Have swithes be blue when checked in night mode 2021-06-21 22:37:37 +02:00
Henrik Giesel
b89fbe1aa5 Replace dash with underscore for night_mode_lib 2021-06-21 21:51:15 +02:00
Henrik Giesel
4ee66fb742 Add night_mode_lib as SCSS target 2021-06-21 21:44:23 +02:00
Henrik Giesel
447f50724a Always show spinning reverse icon on mobile 2021-06-21 21:35:20 +02:00
Henrik Giesel
7b01dd1719 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
28bab1f7a1 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
69ec04190c Make gear button show dropdown menu 2021-06-21 20:24:15 +02:00
Henrik Giesel
ad6577d88c Revert button with gear icon, that shows revert dropdown item 2021-06-21 19:11:10 +02:00
Henrik Giesel
60f0ad4093 Associate Switch labels with their respective switches 2021-06-21 18:15:41 +02:00
Henrik Giesel
c99330990a Put tooltip only on the info badge 2021-06-21 17:48:18 +02:00
Damien Elmes
f695fac40b 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
eda359d652 remove left pad on switches 2021-06-21 17:02:48 +02:00
Damien Elmes
db48fe2124 decrease margins in deck options top sticky bar 2021-06-21 17:02:48 +02:00
Henrik Giesel
00fb0e7395 Add g-1 class to DeckoptionsPage. Include transitions.scss
* Modal misbehaved before
2021-06-21 17:02:48 +02:00
Henrik Giesel
2d3f967899 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
e20a5bf2f0 Make TriggerType an input argument for WithTooltip 2021-06-21 17:02:48 +02:00
Henrik Giesel
e131f23037 Increase padding on tooltips + Remove erroneous closing angle bracket 2021-06-21 17:02:48 +02:00
Henrik Giesel
708feac2a2 Implement Switch and SwitchRow 2021-06-21 17:02:48 +02:00
Henrik Giesel
bce4c4d393 Properly dispose of tooltip resources when unmounting 2021-06-21 17:02:48 +02:00
Henrik Giesel
024517e864 Reverse RevertButton being on the right side 2021-06-21 17:02:48 +02:00
Henrik Giesel
827ca7efe5 Alternative solution to markdown tooltips creating bottom margin 2021-06-21 17:02:48 +02:00
Henrik Giesel
f67b9b75da Update RevertButton to use Badge and WithTooltip 2021-06-21 17:02:48 +02:00
Henrik Giesel
01f074785c Add a tooltip showing delay of a quarter second 2021-06-21 17:02:48 +02:00
Henrik Giesel
94c24c0f44 Add back info circles, remove underlines 2021-06-21 17:02:48 +02:00
Henrik Giesel
895bb454ef Update NotetypeSelector to use Item instead of ButtonToolbarItem 2021-06-21 17:02:48 +02:00
Henrik Giesel
6c9de074b6 Fix tooltip regression 2021-06-21 17:02:48 +02:00