Matthias Metelka
a319270391
Make LabelContainer sticky
...
to make field operations accessible on fields with a lot of content.
2022-08-12 00:04:04 +02:00
Matthias Metelka
c2a2edc4e1
Adjust field gutter/margins
2022-08-12 00:01:52 +02:00
Matthias Metelka
3793e19253
Move StickyBadge closer to field border
2022-08-12 00:01:23 +02:00
Matthias Metelka
12e192b170
Make StickyBadge feel more responsive
2022-08-12 00:01:07 +02:00
Matthias Metelka
170ef0b310
Fix aliasing issue on focused field corners
2022-08-11 23:58:49 +02:00
Matthias Metelka
9a2b3410d0
Add slide out animation to EditingArea, RichTextInput and PlainTextInput
...
only for collapsing, because it is choppy on expansion (common issue with Svelte transitions).
2022-08-11 23:57:53 +02:00
Matthias Metelka
3dca559f88
Create separate collapsed field state
...
this means users can collapse fields with the HTML editor open and it will stay open when the field is expanded again.
2022-08-11 23:52:38 +02:00
Matthias Metelka
4eae6981f8
Remove RichTextBadge.svelte
2022-08-11 20:41:03 +02:00
Matthias Metelka
82dde941d2
Show HTML toggle when PlainTextInput is active, regardless of hover/focus
2022-08-09 00:23:58 +02:00
Matthias Metelka
441956922b
Merge branch 'fresh-fields' of https://github.com/kleinerpirat/anki into fresh-fields
2022-08-09 00:04:29 +02:00
Matthias Metelka
c289d3cc7c
Reduce field height by two pixels
2022-08-09 00:03:36 +02:00
Matthias Metelka
1367e2f2b9
Merge branch 'main' into fresh-fields
2022-08-08 23:58:34 +02:00
Matthias Metelka
9f0322d17e
Reduce field height by a few pixels
2022-08-08 23:58:02 +02:00
Matthias Metelka
d63e3c6d14
Implement more obvious HTML toggle on bottom right
2022-08-08 23:56:31 +02:00
Damien Elmes
bd2f866c68
Fix {{CardFlags}} not working with flags 5-7
...
https://forums.ankiweb.net/t/please-activate-flags-5-7-on-the-cardflag/22143
2022-08-08 10:56:07 +10:00
RumovZ
4ea370959b
Fix flicker when remapping imported notetype field ( #2005 )
2022-08-08 01:01:25 +10:00
phwoo
a338271d55
Narrow typehints within pylib ( #2003 )
...
* narrowed type hints
* narrowed type Any
* narrowed type Any
* narrow type Any
2022-08-05 14:48:07 +10:00
phwoo
21cc284abe
Updated permalink to architecture visualization ( #2001 )
...
* updated permalink to architecture visualization
* updated architecture visualization link
2022-08-05 14:47:38 +10:00
Matthias Metelka
dae8fef432
Use tweened SVG for triangle instead of CSS hack
2022-08-04 00:10:53 +02:00
Matthias Metelka
eba053a20b
Show toggle only on hover
...
for mobile I'd like to implement a swipe mechanism.
2022-08-03 22:16:09 +02:00
Matthias Metelka
cf90c71e59
Don't show toggle when field is collapsed
2022-08-03 20:39:51 +02:00
Matthias Metelka
37c74e4fca
Fix transition
...
and format
2022-08-03 20:09:40 +02:00
Matthias Metelka
2a94acd9e8
Make whole separator line clickable
2022-08-03 20:03:10 +02:00
Matthias Metelka
1280372129
Move PlainTextBadge between editing inputs
...
where it belongs :)
2022-08-03 20:02:44 +02:00
Matthias Metelka
26c5fbc367
Fix imports
2022-08-03 19:39:30 +02:00
Matthias Metelka
ffe20d6fbe
Remove unused import
2022-08-03 18:24:10 +02:00
Matthias Metelka
3043789960
Redesign fields
2022-08-03 18:06:15 +02:00
Matthias Metelka
4200f35419
Add code-bg color
2022-08-03 17:47:13 +02:00
Matthias Metelka
4cd47294e4
Remove code icons, keep one pin icon version
2022-08-03 17:46:22 +02:00
Matthias Metelka
89500f9dd6
Add chevron icons
2022-08-03 17:45:13 +02:00
Matthias Metelka
338c76e9f7
Use outline version for tag icon
2022-08-03 17:43:10 +02:00
Matthias Metelka
a3165d7f07
Remove unused function from #1476
2022-08-03 13:47:22 +02:00
Damien Elmes
f017525ea8
Handle deeply nested decks
2022-08-03 14:37:56 +10:00
Sam Bradshaw
c4d71eae2f
Use platform.platform() in supportText() ( #1999 )
...
From [the documentation](https://docs.python.org/3.9/library/platform.html#platform.platform ):
> Returns a single string identifying the underlying platform with as much useful information as possible.
The output is intended to be human readable rather than machine parseable. It may look different on different platforms and this is intended.
Changed in version 3.8: On macOS, the function now uses mac_ver(), if it returns a non-empty release string, to get the macOS version rather than the darwin version.
The main advantage of this change is that it provides the architecture of the platform, which is increasingly relevant as ARM systems are becoming more common.
2022-08-02 19:49:02 +10:00
BlueGreenMagick
a7208601fe
fix progress.update(value=0) to not increment progress ( #1998 )
2022-08-01 20:16:42 +10:00
Henrik Giesel
3e28605638
Use wavy flags (flag-alternative) ( #1995 )
2022-08-01 20:15:22 +10:00
Damien Elmes
8a62e9c95e
Ensure only the first fatal error is shown
...
https://forums.ankiweb.net/t/a-fatal-error-occurred-and-anki-must-close-please-report-this-message-on-the-forums/21913
2022-08-01 19:38:46 +10:00
Sam Penny
56f806146c
added editor hook: add_cards_might_add_note ( #1992 )
...
* added hook add_cards_might_add_note
* fix failing test
2022-07-30 20:41:42 +10:00
Damien Elmes
d699bc1252
Handle missing attributes in win32 tts code
...
https://forums.ankiweb.net/t/trouble-adding-tts-to-my-cards/21792/4
2022-07-30 19:08:37 +10:00
Damien Elmes
2e2fc799e2
Only show basename of CSV file
2022-07-23 17:53:50 +10:00
Hikaru Y
e6cc12ca7a
Fix sidebar not being restored properly in some cases ( #1982 )
...
The sidebar (QDockWidget) was not restored properly in some environments
when re-opening the browser if the browser was closed while maximized
under the condition that the window size in the normal window state was
very small.
2022-07-23 16:12:02 +10:00
Damien Elmes
340da23104
Wrap type answer output in code tag; remove extra div
...
This would make more sense as a class on the outer div, but existing
templates reference code#typeans, so avoid breaking things for now.
2022-07-22 20:37:56 +10:00
Damien Elmes
eceacb643b
Update translations
2022-07-22 20:06:45 +10:00
Damien Elmes
ad8c23fc3d
Remove resolved comment
2022-07-22 20:06:45 +10:00
Damien Elmes
f582181ea4
Upgrade Svelte for CVE
2022-07-22 20:06:45 +10:00
Aristotelis
a584ef1f50
Introduce exporters_list_created hook to new export code ( #1978 )
...
* Introduce exporters_list_created hook for new export code
* Fix hook and argument name
2022-07-22 19:33:07 +10:00
Damien Elmes
09eef8e746
Spelling fix
2022-07-22 19:32:31 +10:00
Damien Elmes
1e0be26b7e
Partially migrate type answer to backend
...
Partially completes #1068 , and will allow mobile clients to drop
their separate diff-match-patch imports. Does not yet try to handle
case folding or combining-char stripping, and leaves some of the outer
HTML wrapping up to the frontend for now.
The logic for rendering the provided string has changed: missing chars
are now only inserted if they follow a correct section, and the original
text is shown instead of hyphens. This is an experiment, and can be
changed if it's not well received.
2022-07-22 19:28:34 +10:00
RumovZ
173a5bfed5
Improve temporary table handling ( #1976 )
...
* Use all_cards_for_search() helper
* Add CardTableGuard
* Add for_each_card_in_search() helper
* Add all_cards_for_search_in_order() helper
* Add all_cards_for_ids() helper
* Return siblings for bury instead of only searching
* Remove redundant clear_searched_cards_table() calls
* Add with_searched_cards_table()
* Remove false comment
* Add NoteTableGuard
* Add with_ids_in_searched_notes_table() helper
* Make some last routines use table helpers
2022-07-22 17:51:26 +10:00
RumovZ
09841c7c0f
Populate media DB on import ( #1977 )
...
* Refactor MediaManager transactions
* Add media entries when importing
* Fix legacy apkg import not setting csum
Also test for this in the roundtrip test.
* Avoid reallocating MediaCopier's buffer
* Make sha1 optional (dae)
2022-07-22 17:50:15 +10:00