Skip to content

Commit c31333a

Browse files
committed
✨ feat: change css for docs/showcase
1 parent bd7cef4 commit c31333a

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

docs/docs/SHOWCASE/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ List of used applications with `@baronha/react-native-multiple-image-picker`
2424
target="_blank"
2525
className="showcaseItem"
2626
>
27-
<img src={item.banner} alt={item.title} />
27+
<img src={item.banner} alt={item.title} className="showcaseBanner" />
2828
<b>{item.title}</b>
2929
<p className="showcaseTagline">{item?.tagline}</p>
3030
</a>

docs/docs/SHOWCASE/showcase.css

+7-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
display: flex;
33
/* justify-content: space-between; */
44
flex-wrap: wrap;
5-
gap: 24px;
5+
gap: 20px;
66
}
77

88
.showcaseItem {
@@ -18,7 +18,6 @@
1818

1919
.showcaseItem b {
2020
font-size: 1rem;
21-
2221
}
2322

2423
.showcaseItem .showcaseTagline {
@@ -30,6 +29,12 @@
3029
margin: 0;
3130
}
3231

32+
.showcaseBanner {
33+
width: 100%;
34+
aspect-ratio: 16/9;
35+
object-fit: cover;
36+
}
37+
3338
@media (max-width: 768px) {
3439
.showcaseItem {
3540
flex: 100%;
@@ -40,23 +45,20 @@
4045
@media (min-width: 992px) {
4146
/* lg */
4247
.showcaseItem {
43-
4448
max-width: 33.333%;
4549
}
4650
}
4751

4852
@media (min-width: 1200px) {
4953
/* xl */
5054
.showcaseItem {
51-
5255
max-width: 33.333%;
5356
}
5457
}
5558

5659
@media (min-width: 1400px) {
5760
/* xxl */
5861
.showcaseItem {
59-
6062
max-width: 33.333%;
6163
}
6264
}

0 commit comments

Comments
 (0)