Skip to content

Commit

Permalink
Add dot loader for recommender view
Browse files Browse the repository at this point in the history
Signed-off-by: Jay Wang <[email protected]>
  • Loading branch information
xiaohk committed Jul 8, 2024
1 parent fa6adb7 commit 6cfdd73
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
24 changes: 23 additions & 1 deletion src/components/recommender-view/recommender-view.css
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,13 @@
}

.progress-message {
position: relative;

&::after {
display: inline;
position: absolute;
animation: dot-animation steps(1, end) 2000ms infinite;
content: '';
animation: dot 300ms linear infinite;
}
}

Expand All @@ -374,6 +378,24 @@
}
}

@keyframes dot-animation {
0% {
content: '';
}
25% {
content: '.';
}
50% {
content: '..';
}
75% {
content: '...';
}
100% {
content: '';
}
}

button {
all: unset;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/recommender-view/recommender-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ export class RecRecRecommenderView extends LitElement {
<sl-progress-ring
value=${(this.completedStep / this.totalStep) * 100}
></sl-progress-ring>
<span class="progress-message">Fetching recommender details...</span>
<span class="progress-message">Fetching recommender details</span>
<span class="progress-remain-time"
>About ${formatRemainTime(this.remainTimeMS)} left</span
>
Expand Down

0 comments on commit 6cfdd73

Please sign in to comment.