File tree 4 files changed +30
-6
lines changed
4 files changed +30
-6
lines changed Original file line number Diff line number Diff line change @@ -643,7 +643,7 @@ class Grid extends React.Component<
643
643
if ( cardsOfType . length ) {
644
644
return (
645
645
// Add a header for the card type
646
- < >
646
+ < div className = "marketplace-content" >
647
647
{ /* Add a header for the card type */ }
648
648
< h2 className = "marketplace-card-type-heading" > { t ( `tabs.${ cardType . name } ` ) } </ h2 >
649
649
{ /* Add the grid and cards */ }
@@ -654,7 +654,7 @@ class Grid extends React.Component<
654
654
>
655
655
{ cardsOfType }
656
656
</ div >
657
- </ >
657
+ </ div >
658
658
) ;
659
659
}
660
660
return null ;
@@ -666,8 +666,15 @@ class Grid extends React.Component<
666
666
</ Button >
667
667
) : null }
668
668
< footer className = "marketplace-footer" >
669
- { ! this . state . endOfList &&
670
- ( this . state . rest && this . state . cards . length > 0 ? < LoadMoreIcon onClick = { this . loadMore . bind ( this ) } /> : < LoadingIcon /> ) }
669
+ { ! this . state . endOfList ? (
670
+ this . state . rest && this . state . cards . length > 0 ? (
671
+ < LoadMoreIcon onClick = { this . loadMore . bind ( this ) } />
672
+ ) : (
673
+ < LoadingIcon />
674
+ )
675
+ ) : (
676
+ < div style = { { height : "64px" } } />
677
+ ) }
671
678
</ footer >
672
679
< TopBarContent switchCallback = { this . switchTo . bind ( this ) } links = { this . CONFIG . tabs } activeLink = { this . CONFIG . activeTab } />
673
680
</ section >
Original file line number Diff line number Diff line change @@ -3,7 +3,12 @@ import React from "react";
3
3
export default class LoadMoreIcon extends React . Component < { onClick : ( ) => void } > {
4
4
render ( ) {
5
5
return (
6
- < div onClick = { this . props . onClick } >
6
+ < div
7
+ style = { {
8
+ marginTop : "60px"
9
+ } }
10
+ onClick = { this . props . onClick }
11
+ >
7
12
< p
8
13
style = { {
9
14
fontSize : 100 ,
Original file line number Diff line number Diff line change @@ -18,7 +18,15 @@ const LoadingIcon = () => {
18
18
// })));
19
19
20
20
return (
21
- < svg width = "100px" height = "100px" viewBox = "0 0 100 100" preserveAspectRatio = "xMidYMid" role = "img" aria-label = "Loading Icon" >
21
+ < svg
22
+ style = { { marginTop : "60px" } }
23
+ width = "100px"
24
+ height = "100px"
25
+ viewBox = "0 0 100 100"
26
+ preserveAspectRatio = "xMidYMid"
27
+ role = "img"
28
+ aria-label = "Loading Icon"
29
+ >
22
30
< circle cx = "50" cy = "50" r = "0" fill = "none" stroke = "currentColor" strokeWidth = "2" >
23
31
< animate
24
32
attributeName = "r"
Original file line number Diff line number Diff line change 152
152
bottom : 32px ;
153
153
left : 100% ;
154
154
}
155
+
156
+ .marketplace-content {
157
+ margin-top : 60px ;
158
+ }
You can’t perform that action at this time.
0 commit comments