Skip to content

Commit c49d054

Browse files
fix: correct logo Alignment in Sponsor Section (#7568)
1 parent a04da6c commit c49d054

File tree

3 files changed

+22
-12
lines changed

3 files changed

+22
-12
lines changed

src/components/Support/Support.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ export default class Support extends Component {
173173
{rank === 'backer'
174174
? 'Backers'
175175
: rank === 'latest'
176-
? 'Latest Sponsors'
177-
: `${rank[0].toUpperCase()}${rank.slice(1)} ${
178-
type === 'monthly' ? 'Monthly ' : ''
179-
}Sponsors`}
176+
? 'Latest Sponsors'
177+
: `${rank[0].toUpperCase()}${rank.slice(1)} ${
178+
type === 'monthly' ? 'Monthly ' : ''
179+
}Sponsors`}
180180
</h2>
181181
<VisibilitySensor
182182
delayedCall
@@ -240,7 +240,7 @@ export default class Support extends Component {
240240
>
241241
{
242242
<img
243-
className={`support__${rank}-avatar`}
243+
className={`support__${rank}-avatar support__image`}
244244
src={
245245
inView && supporter.avatar ? supporter.avatar : SmallIcon
246246
}

src/components/Support/Support.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
@import 'functions';
22

3+
.support__image {
4+
width: 100px; /* Default width */
5+
height: 100px; /* Default height */
6+
object-fit: contain; /* Maintain aspect ratio */
7+
border-radius: 10px; /* Rounded corners */
8+
background-color: white; /* Fallback background */
9+
padding: 3px; /* Spacing */
10+
11+
/* Responsive adjustments */
12+
max-width: 100%;
13+
}
14+
315
.support {
416
display: flex;
517
flex-wrap: wrap;
@@ -58,6 +70,11 @@
5870

5971
@media (min-width: 400px) {
6072
max-width: 384px;
73+
.support__image {
74+
width: 60px;
75+
height: 60px;
76+
padding: 2px;
77+
}
6178
}
6279
}
6380

yarn.lock

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2108,13 +2108,6 @@
21082108
"@octokit/plugin-rest-endpoint-methods" "^13.0.0"
21092109

21102110
"@octokit/types@^13.0.0", "@octokit/types@^13.5.0":
2111-
version "13.5.0"
2112-
resolved "https://registry.yarnpkg.com/@octokit/types/-/types-13.5.0.tgz#4796e56b7b267ebc7c921dcec262b3d5bfb18883"
2113-
integrity sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==
2114-
dependencies:
2115-
"@octokit/openapi-types" "^22.2.0"
2116-
2117-
"@octokit/types@^13.6.2", "@octokit/types@^13.7.0":
21182111
version "13.8.0"
21192112
resolved "https://registry.yarnpkg.com/@octokit/types/-/types-13.8.0.tgz#3815885e5abd16ed9ffeea3dced31d37ce3f8a0a"
21202113
integrity sha512-x7DjTIbEpEWXK99DMd01QfWy0hd5h4EN+Q7shkdKds3otGQP+oWE/y0A76i1OvH9fygo4ddvNf7ZvF0t78P98A==

0 commit comments

Comments
 (0)