de2cc20c59
* 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
12 lines
362 B
Svelte
12 lines
362 B
Svelte
<!--
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
-->
|
|
<style lang="scss">
|
|
:global([data-editor-shrink]:not([data-editor-shrink="false"])) {
|
|
max-width: var(--editor-shrink-max-width);
|
|
max-height: var(--editor-shrink-max-height);
|
|
width: auto;
|
|
}
|
|
</style>
|