refactor: use style directive where applicable (#1760)

Closes #1604
This commit is contained in:
Eric Liu 2023-07-23 12:26:46 -07:00 committed by GitHub
commit bc7f5821b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 26 additions and 25 deletions

View file

@ -82,8 +82,8 @@
{/if}
{#if loaded}
<img
style:width="100%"
{...$$restProps}
style="width: 100%;{$$restProps.style}"
src="{src}"
alt="{alt}"
transition:fade|local="{{ duration: fadeIn ? fast02 : 0 }}"
@ -99,8 +99,8 @@
{/if}
{#if loaded}
<img
style:width="100%"
{...$$restProps}
style="width: 100%;{$$restProps.style}"
src="{src}"
alt="{alt}"
transition:fade|local="{{ duration: fadeIn ? fast02 : 0 }}"