File tree Expand file tree Collapse file tree 2 files changed +24
-11
lines changed Expand file tree Collapse file tree 2 files changed +24
-11
lines changed Original file line number Diff line number Diff line change @@ -39,24 +39,30 @@ const LazyLoadComponent: FC<
39
39
< div ref = { ref } className = "components-overview-item" >
40
40
{ isVisible && (
41
41
< Suspense fallback = { < div className = "skeleton" > </ div > } >
42
- < Link tabIndex = { 0 } to = { `${ path } /components/${ formattedComponentName } ` } />
42
+ < Link
43
+ className = "components-overview-item__link"
44
+ tabIndex = { 0 }
45
+ to = { `${ path } /components/${ formattedComponentName } ` }
46
+ />
43
47
< KolCard
44
48
tabIndex = { - 1 }
45
49
aria-label = { formattedComponentName }
46
50
role = "img"
47
51
_level = { 2 }
48
52
_label = { formattedComponentName }
49
53
>
50
- < SampleComponent lang = { lang } />
51
- { badges && badges ?. length > 0 && (
52
- < div className = "bottom-2 p-1" >
53
- < div className = "flex flex-wrap gap-2" >
54
- { badges ?. map ( ( label ) => (
55
- < KolBadge key = { label } _color = "#dadde1" _label = { label } > </ KolBadge >
56
- ) ) }
54
+ < div className = "components-overview-item__card-content" >
55
+ < SampleComponent lang = { lang } />
56
+ { badges && badges ?. length > 0 && (
57
+ < div className = "mt-4 p-1" >
58
+ < div className = "flex flex-wrap gap-2" >
59
+ { badges ?. map ( ( label ) => (
60
+ < KolBadge key = { label } _color = "#dadde1" _label = { label } > </ KolBadge >
61
+ ) ) }
62
+ </ div >
57
63
</ div >
58
- </ div >
59
- ) }
64
+ ) }
65
+ </ div >
60
66
</ KolCard >
61
67
</ Suspense >
62
68
) }
Original file line number Diff line number Diff line change @@ -163,7 +163,14 @@ kol-link-button {
163
163
box-sizing : border-box;
164
164
}
165
165
166
- .components-overview-item a {
166
+ .components-overview-item__card-content {
167
+ display : flex;
168
+ flex-flow : column;
169
+ height : 100% ;
170
+ justify-content : space-between;
171
+ }
172
+
173
+ .components-overview-item__link {
167
174
position : absolute;
168
175
width : 100% ;
169
176
height : 100% ;
You can’t perform that action at this time.
0 commit comments