Skip to content

Commit 3fd9bb9

Browse files
saurabh007007saurabh007007
authored andcommitted
fixed the logo size of the sponsors sections
1 parent a04da6c commit 3fd9bb9

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

src/components/Support/Support.jsx

Lines changed: 6 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
}
@@ -276,6 +276,7 @@ export default class Support extends Component {
276276
*/
277277
_handleImgError(e) {
278278
const imgNode = e.target;
279+
console.error('Image failed to load:', imgNode.src);
279280
if (imgNode.getAttribute('src') === SmallIcon) return;
280281
imgNode.setAttribute('src', SmallIcon);
281282
}

src/components/Support/Support.scss

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

3+
.support__image {
4+
width: 100px; /* Set a uniform width */
5+
height: 100px; /* Set a uniform height */
6+
object-fit: contain; /* Ensures the image maintains its aspect ratio */
7+
border-radius: 10px; /* Optional: Adds rounded corners */
8+
background-color: white; /* Fallback background */
9+
padding: 3px; /* Add some spacing */
10+
}
11+
312
.support {
413
display: flex;
514
flex-wrap: wrap;

yarn.lock

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2107,14 +2107,7 @@
21072107
"@octokit/plugin-request-log" "^5.3.1"
21082108
"@octokit/plugin-rest-endpoint-methods" "^13.0.0"
21092109

2110-
"@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":
2110+
"@octokit/types@^13.0.0", "@octokit/types@^13.5.0", "@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)