Skip to content

Commit 132576c

Browse files
committed
frontend: Limit width of team photo in team info page
1 parent 85b0efe commit 132576c

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

frontend/css/livesite.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,12 @@ a.no-decoration {
483483
overflow-wrap: anywhere;
484484
}
485485

486+
.teaminfo .team-thumbnail {
487+
width: 75%;
488+
height: auto;
489+
margin: auto;
490+
}
491+
486492
.teaminfo .team-photo {
487493
width: 100%;
488494
height: auto;
@@ -528,3 +534,15 @@ a.no-decoration {
528534
background-color: transparent;
529535
}
530536
}
537+
538+
@media (max-width: 1199px) {
539+
.teaminfo .team-thumbnail {
540+
width: 80%;
541+
}
542+
}
543+
544+
@media (max-width: 991px) {
545+
.teaminfo .team-thumbnail {
546+
width: 100%;
547+
}
548+
}

frontend/src/components/teams/TeamInfo.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,12 @@ export default function TeamInfo({ requestedTeamId }: TeamInfoProps) {
172172
</h1>
173173
</div>
174174
{siteconfig.features.photo ? (
175-
<FixedRatioThumbnail
176-
url={team.photo!}
177-
ratio={siteconfig.ui.photoAspectRatio}
178-
/>
175+
<div className="team-thumbnail">
176+
<FixedRatioThumbnail
177+
url={team.photo!}
178+
ratio={siteconfig.ui.photoAspectRatio}
179+
/>
180+
</div>
179181
) : null}
180182
{team.comment ? <TeamComment comment={team.comment} /> : null}
181183
<div className="row">{memberElements}</div>

0 commit comments

Comments
 (0)