anki/ts/editor/image-overlay
Henrik Giesel de2cc20c59
Change how resizable images work (#1859)
* Add ResizableImage.svelte in ts/editable

* Set image constrained via attributes instead of managed style sheet

* Implement new constrained size method

* Turn WithImageConstrained.svelte into normal ts file

* Introduce removeStyleProperties

Removes "style" attribute if all style properties were cleared

* Avoid --editor-width and use one variable set on container

* Disable shrinking if already smaller than shrunken size

* Add button to restore image to original size

* Don't allow restoring original size if no custom width set

* Bottom-center HandleLabel

* Satisfy svelte-check
2022-05-13 12:57:07 +10:00
..
FloatButtons.svelte Use eslint for sorting our imports (#1637) 2022-02-04 18:36:34 +10:00
icons.ts Change how resizable images work (#1859) 2022-05-13 12:57:07 +10:00
ImageHandle.svelte Change how resizable images work (#1859) 2022-05-13 12:57:07 +10:00
index.ts Translate Editor entirely to Svelte (#1403) 2021-10-18 22:01:15 +10:00
SizeSelect.svelte Change how resizable images work (#1859) 2022-05-13 12:57:07 +10:00