File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
lib/processes/animations-listing Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,13 @@ export class AnimationSearch extends EventTarget {
117
117
// Clear and rebuild the animation list
118
118
this . animation_list_container . innerHTML = ''
119
119
120
+ // Show "no animations found" if the filtered list is empty
121
+ if ( this . filtered_animations_list . length === 0 ) {
122
+ this . animation_list_container . innerHTML = '<div class="no-animations-message">No animations found</div>'
123
+ return
124
+ }
125
+
126
+
120
127
this . filtered_animations_list . forEach ( ( animation_clip ) => {
121
128
if ( this . animation_list_container == null ) {
122
129
return
Original file line number Diff line number Diff line change @@ -566,4 +566,10 @@ position: fixed;
566
566
position : absolute;
567
567
bottom : 0px ;
568
568
left : 0 ;
569
+ }
570
+
571
+ # animations-items .no-animations-message {
572
+ padding : 0.5rem ;
573
+ font-style : italic;
574
+ font-size : 90% ;
569
575
}
You can’t perform that action at this time.
0 commit comments