Skip to content

Commit

Permalink
Fix supporter list animation and wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphiiko committed Oct 13, 2024
1 parent b564d24 commit 8651c4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@
overflow: hidden;
margin-left: -1em;

* {
white-space: nowrap;
}

.supporters-label {
flex-shrink: 0;
font-size: 1.5em;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ export class AboutViewComponent implements OnInit, AfterViewInit, OnDestroy {
list.style.opacity = '100%';
return;
}
list.scrollLeft += 0.5;
list.scrollLeft += 1;
if (list.scrollLeft < list.scrollWidth - list.clientWidth) {
requestAnimationFrame(() => scrollToEnd());
setTimeout(() => scrollToEnd(), 16);
} else {
setTimeout(() => {
list.style.opacity = '0%';
Expand Down

0 comments on commit 8651c4f

Please sign in to comment.