Fix top zaps z-axis stacking for better animation

This commit is contained in:
Bojan Mojsilovic 2024-04-30 12:18:27 +02:00
parent 2a9d443bc6
commit b5b043152c
2 changed files with 3 additions and 1 deletions

View File

@ -352,6 +352,7 @@
}
.topZap {
position: relative;
display: flex;
align-items: center;
gap: 8px;
@ -430,7 +431,7 @@
.topZapExitTransition {
opacity: 0;
transform: translateY(30px);
transform: translateY(3px);
}
.noteNotificationLink {

View File

@ -74,6 +74,7 @@ const NoteTopZaps: Component<{
<button
class={`${styles.topZap}`}
onClick={() => props.action()}
style={`z-index: ${12 - index()};`}
>
<Avatar user={zapSender(zap)} size="micro" />
<div class={styles.amount}>