Initial zap animation fix

This commit is contained in:
Bojan Mojsilovic 2024-04-18 13:41:19 +02:00
parent 9f31e86546
commit 1bb40ea185
2 changed files with 6 additions and 6 deletions

View File

@ -178,9 +178,9 @@
} }
} }
.smallZapLottie { .largeZapLottie {
width: 32px; width: 341px;
height: 32px; height: 95px;
position: absolute; position: absolute;
z-index: 20; z-index: 20;
} }

View File

@ -219,8 +219,8 @@ const NoteFooter: Component<{
return; return;
} }
const newLeft = props.wide ? 36 : 24; const newLeft = props.wide ? 33 : 21;
const newTop = props.wide ? -28 : -28; const newTop = props.wide ? -29 : -29;
medZapAnimation.style.left = `${newLeft}px`; medZapAnimation.style.left = `${newLeft}px`;
medZapAnimation.style.top = `${newTop}px`; medZapAnimation.style.top = `${newTop}px`;
@ -310,7 +310,7 @@ const NoteFooter: Component<{
<ZapAnimation <ZapAnimation
id={`note-med-zap-${props.note.post.id}`} id={`note-med-zap-${props.note.post.id}`}
src={zapMD} src={zapMD}
class={styles.mediumZapLottie} class={props.large ? styles.largeZapLottie : styles.mediumZapLottie}
ref={medZapAnimation} ref={medZapAnimation}
/> />
</Show> </Show>