Henrik Giesel
392bdf6184
Port most components from first tageditor PR
2021-09-09 15:37:33 +02:00
Henrik Giesel
1026d26793
Display a tag-outline icon in the bottom left
2021-09-09 15:37:33 +02:00
Henrik Giesel
bb6db5bd95
Add Tag DeleteIcon
2021-09-09 15:37:33 +02:00
Henrik Giesel
0e858d87d4
Add Tag.svelte
2021-09-09 15:37:33 +02:00
Henrik Giesel
f9b320e105
Mount TagEditor
2021-09-09 15:37:33 +02:00
Damien Elmes
4ba30279ac
Merge pull request #1357 from hgiesel/preventstickybubble
...
Prevent sticky bubble
2021-09-08 19:02:00 +10:00
Henrik Giesel
a826895f0b
However bubble up when clicking on label container itself
2021-09-07 15:02:59 +02:00
Henrik Giesel
9cbcfa1bbf
Put sticky tooltip on icon, not label container
2021-09-07 14:33:15 +02:00
Henrik Giesel
7370c92a0b
Prevent sticky bubbling and saveField before toggling sticky
2021-09-07 14:33:05 +02:00
Damien Elmes
a961013961
fix case of fields table
2021-09-07 10:22:22 +10:00
Damien Elmes
996f4c637f
remove recursive symlink
...
https://github.com/ankitects/anki/pull/1332#issuecomment-913572914
2021-09-06 21:26:30 +10:00
Henrik Giesel
f5ab78825a
Fix Float buttons in rtl
2021-09-06 21:15:37 +10:00
Henrik Giesel
bbf03a6b93
Fix ButtonDropdown disappearing when mouseupping on HandleBackground
2021-09-06 21:15:37 +10:00
Henrik Giesel
add6d86ae6
Fix Tab not moving caret to end
2021-09-06 21:15:37 +10:00
Henrik Giesel
5cf2c6196d
Make clicking on labelcontainer move focus to field
2021-09-06 21:15:37 +10:00
Henrik Giesel
59123a2d5f
Decrease margin of the pin icon on the right
2021-09-06 21:15:37 +10:00
Henrik Giesel
2d342ddfe3
Have a uniform border-radius for buttons and fields
2021-09-06 21:15:37 +10:00
Henrik Giesel
1a79e9aac9
Add a dashed border around pictures when image-editing
2021-09-06 21:15:37 +10:00
Henrik Giesel
af7f2c06df
Make focus highlight artificial and based on :focus-within
2021-09-06 21:15:37 +10:00
Henrik Giesel
c3253e8596
Remove comma
2021-09-06 21:15:37 +10:00
Henrik Giesel
18f63ef17e
Prevent overflow of sizeDimensions or image handle buttons
2021-09-06 21:15:37 +10:00
Henrik Giesel
cc2641095f
Fix automatic positioning of ButtonDropdown after changing float property
2021-09-06 21:15:37 +10:00
Henrik Giesel
3579b6a3b6
Introduce WithImageConstrained
2021-09-06 21:15:37 +10:00
Henrik Giesel
017b6f9ff1
Parameterize overlay handle offsets
2021-09-06 21:15:37 +10:00
Henrik Giesel
f2f93ef67e
Move more logic into HandleSelection
2021-09-06 21:15:37 +10:00
Henrik Giesel
96fd1f5b77
Remove unused import tick
2021-09-06 21:15:37 +10:00
Henrik Giesel
24b4f5e6e9
Implement HandleLabel
2021-09-06 21:15:37 +10:00
Henrik Giesel
1c99d163d1
Implement HandleBackground
2021-09-06 21:15:37 +10:00
Henrik Giesel
40c62c8c41
Remove unused nightMode from ImageHandle
2021-09-06 21:15:37 +10:00
Henrik Giesel
73d56df610
Introduce HandleControl
2021-09-06 21:15:37 +10:00
Henrik Giesel
18ed6597f5
Introduce HandleSelection.svelte
2021-09-06 21:15:37 +10:00
Henrik Giesel
e003a08c83
Change SizeSelect.images back to const: no reactivity needed here
2021-09-06 21:15:37 +10:00
Henrik Giesel
1eb84b5d64
Also check for sizeSelect.includes
2021-09-06 21:15:37 +10:00
Henrik Giesel
7cd0ced35b
Make images in SizeSelect variable again
2021-09-06 21:15:37 +10:00
Henrik Giesel
386e2740e6
Only allow ImageHandle on valid pictures (determined in SizeSelect)
2021-09-06 21:15:37 +10:00
Henrik Giesel
899434c682
Fix resetting image-handle-bg on no activeImage
2021-09-06 21:15:37 +10:00
Henrik Giesel
a8ffdc2d7f
Set max-width of images in the reviewer to 100%
2021-09-06 21:15:37 +10:00
Henrik Giesel
bae09a4743
Make first adjustment of size dimensions wait for setting of dimensions label
2021-09-06 21:15:37 +10:00
Henrik Giesel
5f1ed707ff
Better algorithmus for minimum resize + prevent overflow of dimensions
2021-09-06 21:15:37 +10:00
Henrik Giesel
083d173469
Constrain with proportions in SizeSelect
2021-09-06 21:15:37 +10:00
Henrik Giesel
2f94208381
Show custom dimensions again
2021-09-06 21:15:37 +10:00
Henrik Giesel
13f5819f48
Detect active status again
2021-09-06 21:15:37 +10:00
Henrik Giesel
69f1c353df
Implement new resizing algorithm
...
* resizes against the original parameters
2021-09-06 21:15:37 +10:00
Henrik Giesel
d3e46e9da4
Manage CSSStyleSheet from within SizeSelect where each image has one rule
2021-09-06 21:15:37 +10:00
Henrik Giesel
e581d593d3
Hide Float icons when width too small + Avoid too small resizing
2021-09-06 21:15:37 +10:00
Henrik Giesel
f379e18e6f
Revert "During resizing, make the smaller dimension decide the new dimensions"
...
This reverts commit 5bad9a913ce7b4a4cc58106936203fddec37d6da.
The previous behavior was the one you can observe in most graphical editors:
The bigger dimension (width or height) will decide the size, not the smaller one.
2021-09-06 21:15:37 +10:00
Henrik Giesel
64a68743bd
During resizing, make the smaller dimension decide the new dimensions
2021-09-06 21:15:37 +10:00
Henrik Giesel
f9000de16c
Reset height, so it defaults to "auto"
...
* This allows more flexible dynamic resizing for the image in the (p)reviewer
2021-09-06 21:15:37 +10:00
Henrik Giesel
b07c46f88f
Add margin to other side of dimensions
2021-09-06 21:15:37 +10:00
Henrik Giesel
5e80ef3562
Do not allow for resizing when in constrained mode
2021-09-06 21:15:37 +10:00