Skip to content

Commit

Permalink
fix: remove scrolling animation from long usernames in event bar
Browse files Browse the repository at this point in the history
  • Loading branch information
vyneer committed Dec 2, 2024
1 parent 7c82683 commit e96d32f
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions assets/chat/css/chat/event-bar/_event-bar-event.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
margin-right: a.$gutter-xs;
max-width: 12ch;
overflow: hidden;
text-overflow: ellipsis;
}

.event-icon {
Expand Down Expand Up @@ -55,8 +56,6 @@
.user {
font-weight: 500;
color: a.$color-label-user;
display: inline-block;
animation: scrolling-event-username 12s linear 3s infinite;
word-wrap: normal;

&::before {
Expand Down Expand Up @@ -135,15 +134,3 @@
opacity: 0;
}
}

@keyframes scrolling-event-username {
25%,
50% {
transform: translateX(calc(-1 * max(0px, 100% - 12ch)));
}

75%,
100% {
transform: translateX(0%);
}
}

0 comments on commit e96d32f

Please sign in to comment.