This repository was archived by the owner on Oct 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +20
-2
lines changed
templates/components/Challenge/Tabs Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -413,3 +413,21 @@ ul.credit {
413413 grid-area : leaderboard;
414414 }
415415}
416+
417+ // The placeholder that shows only after 100ms
418+ // to prevent the flickering.
419+ .app-placeholder {
420+ animation : fade- in 200ms ;
421+
422+ @keyframes fade-in {
423+ 0% {
424+ opacity : 0 ;
425+ }
426+ 50% {
427+ opacity : 0 ;
428+ }
429+ 100% {
430+ opacity : 1 ;
431+ }
432+ }
433+ }
Original file line number Diff line number Diff line change 173173</div >
174174
175175{% macro placeholder(props ) %}
176- <div class =" alert alert-info d-flex gap-3 align-items-center" >
176+ <div class =" app-placeholder alert alert-info d-flex gap-3 align-items-center" >
177177 <div class =" spinner-grow" role =" status" aria-hidden =" true" ></div >
178178 <div >正在進行比較⋯⋯</div >
179179 </div >
Original file line number Diff line number Diff line change 2121</div >
2222
2323{% macro placeholder(props ) %}
24- <div class =" alert alert-info d-flex gap-3 align-items-center" >
24+ <div class =" app-placeholder alert alert-info d-flex gap-3 align-items-center" >
2525 <div class =" spinner-grow" role =" status" aria-hidden =" true" ></div >
2626 <div >正在取回答案⋯⋯</div >
2727 </div >
You can’t perform that action at this time.
0 commit comments