diff --git a/src/components/Lottie/Lottie.svelte b/src/components/Lottie/Lottie.svelte index a49c870f..c3c1856a 100644 --- a/src/components/Lottie/Lottie.svelte +++ b/src/components/Lottie/Lottie.svelte @@ -11,6 +11,7 @@ isReverseMode, createRenderConfig, isNullish, + isContainerWidth, } from './ts/utils'; import { Tween } from 'svelte/motion'; @@ -49,7 +50,8 @@ layout = { fit: 'contain', align: [0.5, 0.5] }, animationId = '', lottiePlayer = $bindable(undefined), - height = '100lvh', + width = 'fluid', + height = 'auto', showDebugInfo = false, lottieState = createLottieState(), progress = $bindable(0), @@ -396,7 +398,12 @@ }); -