Henrik Giesel
4142fa2aa2
Don't show same dimensions twice if there are no custom dimensions
2021-09-06 21:15:37 +10:00
Henrik Giesel
92ed342547
Change position of float buttons and dimension
...
* So we can show dimensions at lower image sizes
2021-09-06 21:15:37 +10:00
Henrik Giesel
1472dc854c
Deal with case where no style.{width,height} is set for size dimensions
2021-09-06 21:15:37 +10:00
Henrik Giesel
be3aaa1519
Dispaly "actualHeight / actualWidth" even in constrained mode
2021-09-06 21:15:37 +10:00
Henrik Giesel
4da68e3583
Turn off no-explicit-warning for editing-area
2021-09-06 21:15:36 +10:00
Henrik Giesel
d22aa72964
Use ResizeObserver to resize overlay if necessary
2021-09-06 21:15:36 +10:00
Henrik Giesel
30e0894ad9
Reset image handle on keydown and blur
2021-09-06 21:15:36 +10:00
Henrik Giesel
c6e56e0465
Better RTL support
2021-09-06 21:15:36 +10:00
Henrik Giesel
eb71c97872
Adjust actual size tooltip
2021-09-06 21:15:36 +10:00
Henrik Giesel
def2333605
Move selector / active logic up to ImageHandle
2021-09-06 21:15:36 +10:00
Henrik Giesel
a09187007d
Do not use width/height auto important to avoid enlarging smaller images
2021-09-06 21:15:36 +10:00
Henrik Giesel
a1df49b11e
Implement Maximum image size mechanism
2021-09-06 21:15:36 +10:00
Henrik Giesel
8a8cd4ee38
Add float tooltips
2021-09-06 21:15:36 +10:00
Henrik Giesel
f902e91ebd
Allow SW resize
2021-09-06 21:15:36 +10:00
Henrik Giesel
b3c921b86c
Bind to style properties instead of events
2021-09-06 21:15:36 +10:00
Henrik Giesel
8429d00081
Add functionality to set float of image
2021-09-06 21:15:36 +10:00
Henrik Giesel
49da806d91
Image resizes preserves ratio
2021-09-06 21:15:36 +10:00
Henrik Giesel
1756bca212
Add image-handle-dimensions to show dimensions directly on image
2021-09-06 21:15:36 +10:00
Henrik Giesel
0b06891771
First implementation of ImageHandle
2021-09-06 21:15:36 +10:00
Damien Elmes
41c4be2f54
Introduce editable-container
...
Contains the shadow root, and references to the styles.
Is ignorant of Editable.
Is necessary, so our we editable.scss does not need to contain
information about Codable, ImageHandle or all those other things which
have nothing to do with Editable
2021-09-06 21:15:36 +10:00
Damien Elmes
6909a095d5
Merge pull request #1332 from hgiesel/svelteexportcontext
...
Shorten CSS references for `@import` or `@use`
2021-09-06 21:10:27 +10:00
Damien Elmes
c9574ec133
Merge pull request #1356 from tatsumoto-ren/editor_will_process_mime
...
Add a hook for modifiying pasted MIME data
2021-09-06 21:03:37 +10:00
Damien Elmes
6b3c309725
Merge pull request #1354 from hgiesel/preventoverwrite
...
Disallow setting, deleting or defining properties on packages
2021-09-06 20:57:37 +10:00
Damien Elmes
31b0729ee1
update translations
2021-09-06 18:31:36 +10:00
Damien Elmes
e60fe4a67f
add comment to segoe-ui string
...
https://forums.ankiweb.net/t/font-family-bug/12993/3
2021-09-06 18:29:26 +10:00
Ren Tatsumoto
de974f94db
avoid possible performance hit
2021-09-05 16:10:34 +03:00
Ren Tatsumoto
7451ad68b1
fix test complaints
2021-09-05 15:04:24 +03:00
Ren Tatsumoto
2ef0ab981d
update CONTRIBUTORS
2021-09-05 13:52:54 +03:00
Ren Tatsumoto
9ff37d9baa
Add a hook for modifiying pasted MIME data
2021-09-05 13:52:54 +03:00
Henrik Giesel
03818b7c45
Disallow setting, deleting or defining properties on packages
2021-09-03 00:52:39 +02:00
Henrik Giesel
516007518c
Add ts/sass/anki, a symlink to ts/sass for add-ons
2021-09-03 00:18:17 +02:00
Henrik Giesel
677a33f585
Fix for svelte_check
2021-09-02 23:37:17 +02:00
Henrik Giesel
8ff8186aab
Uniformly shorten SCSS imports/uses
2021-09-02 23:37:17 +02:00
Henrik Giesel
4a2d2a75c1
Directly include CSS from bootstrap and codemirror packages
2021-09-02 23:37:16 +02:00
Damien Elmes
e5409a25b5
Merge pull request #1353 from hgiesel/checkforblockinstead
...
Check for non-existence of block tags instead of exclusive existence of inline tags in editable
2021-09-02 22:39:58 +10:00
Henrik Giesel
4737a99809
Add source for block level elements
2021-09-02 22:31:25 +10:00
Henrik Giesel
1363a40273
Remove special treatment of empty anki-editable
2021-09-02 22:31:25 +10:00
Henrik Giesel
01a283bb99
Check for non-existence of block tags instead of exclusive existence of inline tags in editable
2021-09-02 22:31:25 +10:00
Damien Elmes
cb5cb006a9
Merge pull request #1350 from hgiesel/exportshortcuts
...
Implement register-package and export some packages
2021-09-02 22:23:12 +10:00
Damien Elmes
d210a21787
Merge pull request #1351 from hgiesel/fontisinline
...
Add FONT as an inline tag
2021-09-02 22:22:19 +10:00
Damien Elmes
b9d9343f51
don't allow |
in generic family
2021-09-02 21:05:17 +10:00
Damien Elmes
1ae45c5445
quote fonts added via the Add Field dialog
2021-09-02 21:05:16 +10:00
Damien Elmes
1cdf0b1e9d
tweak linux.md and add forum link
2021-09-02 20:52:55 +10:00
Damien Elmes
1bd14b538d
fix inverted decks.have()
2021-09-01 12:00:05 +10:00
Henrik Giesel
cc8ee65eaf
Add FONT as an inline tag
2021-08-31 13:59:07 +02:00
Henrik Giesel
6e0f7c3d53
Implement register-package and export some packages
...
Exported packages are:
* anki/packages
* anki/shortcuts
* anki/bridgecommand
2021-08-30 14:41:40 +02:00
Damien Elmes
ab20f215b1
Merge pull request #1349 from RumovZ/rename-with-parents
...
Disable 'Rename with Parents' for top-level items
2021-08-30 22:27:44 +10:00
Damien Elmes
37941c7d93
Merge pull request #1348 from RumovZ/fix-profile-flags
...
Fix flags not updating when changing profile
2021-08-30 22:27:27 +10:00
RumovZ
d044360ff9
Disable 'Rename with Parents' for top-level items
2021-08-30 11:10:14 +02:00
RumovZ
3c53a961a3
Reset flags when loading a profile...
...
... not only on startup.
2021-08-30 11:07:40 +02:00