animations following feed

This commit is contained in:
piuvas 2024-11-05 20:22:56 -03:00
parent e783359aca
commit e0a2e7aedc
No known key found for this signature in database
GPG Key ID: 82743F52454C621D
1 changed files with 16 additions and 1 deletions

View File

@ -23,7 +23,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template #default="{ items: notes }"> <template #default="{ items: notes }">
<MkDateSeparatedList v-slot="{ item: note }" :items="notes" :class="$style.panel" :noGap="true"> <MkDateSeparatedList v-slot="{ item: note }" :items="notes" :class="$style.panel" :noGap="true">
<SkFollowingFeedEntry v-if="!isHardMuted(note)" :isMuted="isSoftMuted(note)" :note="note" @select="userSelected"/> <SkFollowingFeedEntry v-if="!isHardMuted(note)" :isMuted="isSoftMuted(note)" :note="note" :class="selectedUserId == note.userId && $style.selected" @select="userSelected"/>
</MkDateSeparatedList> </MkDateSeparatedList>
</template> </template>
</MkPagination> </MkPagination>
@ -257,6 +257,21 @@ definePageMetadata(() => ({
margin-bottom: 12px; margin-bottom: 12px;
} }
@keyframes border {
from {border-left: 0px solid var(--accent);}
to {border-left: 6px solid var(--accent);}
}
.selected {
animation: border 0.2s ease-out 0s 1 forwards;
&:first-child {
border-top-left-radius: 5px;
}
&:last-child {
border-bottom-left-radius: 5px;
}
}
@media (min-width: 750px) { @media (min-width: 750px) {
.root { .root {
grid-template-columns: min-content 4fr 6fr min-content; grid-template-columns: min-content 4fr 6fr min-content;