Skip to content

Commit b1d433a

Browse files
authored
Merge pull request #67 from Jan200101/PR/fix-open-source-section
fix: prevent open-source-section from overflowing
2 parents dbc71d8 + 2361bfe commit b1d433a

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

steambrew/www/src/app/page.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,14 +249,23 @@ function RenderHome() {
249249
{stat?.contributors && (
250250
<div className="contributors-container">
251251
<div className="contributors-list">
252-
{stat.contributors.map((contributor, index) => (
252+
{stat.contributors.slice(0, 50).map((contributor, index) => (
253253
<a key={index} href={contributor.html_url} target="_blank" rel="noreferrer">
254254
<div key={index} className="contributor">
255255
<img src={contributor.avatar_url} alt={contributor.login} />
256256
</div>
257257
</a>
258258
))}
259259
</div>
260+
261+
{stat.contributors.length > 50 && (
262+
<button
263+
className="btn btn-secondary view-more-contributors"
264+
onClick={() => window.open('https://github.com/SteamClientHomebrew/Millennium/graphs/contributors', '_blank')}
265+
>
266+
View More
267+
</button>
268+
)}
260269
</div>
261270
)}
262271
</div>

steambrew/www/src/css/index.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4458,6 +4458,12 @@ canvas {
44584458
display: none !important;
44594459
}
44604460

4461+
.contributors-container {
4462+
display: flex;
4463+
flex-direction: column;
4464+
align-items: center;
4465+
}
4466+
44614467
.contributors-list {
44624468
display: grid;
44634469
grid-template-columns: repeat(10, 1fr);
@@ -4468,6 +4474,10 @@ canvas {
44684474
padding: 0px 40px 0px 40px;
44694475
}
44704476

4477+
.view-more-contributors {
4478+
margin-top: 30px;
4479+
}
4480+
44714481
.contributor img {
44724482
width: 100%;
44734483
border-radius: 50%;
@@ -4510,7 +4520,7 @@ video {
45104520

45114521
.open-source-section {
45124522
margin: 0 !important;
4513-
height: 100vh !important;
4523+
min-height: 100vh !important;
45144524
justify-content: center;
45154525
align-items: center;
45164526
display: flex;

0 commit comments

Comments
 (0)