Skip to content

Commit d2bfa90

Browse files
feat: Update map image grid styles for consistency and responsiveness
1 parent aaada20 commit d2bfa90

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/XtremeIdiots.Portal.Web/Styles/features/_maps.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,15 @@
1717
border: 2px solid $map-border-color;
1818
display: block;
1919
margin: 0 auto;
20-
width: 100%;
20+
max-width: 150px;
2121
object-fit: cover;
2222
aspect-ratio: 4 / 3;
2323
}
2424

25+
.map-image-grid .map-image {
26+
max-width: 100%;
27+
}
28+
2529
.vote-stats {
2630
font-size: $font-size-xs;
2731
}

src/XtremeIdiots.Portal.Web/Views/MapRotations/AssignmentStatus.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@
340340
}
341341
else
342342
{
343-
<div class="row g-2">
343+
<div class="row g-2 map-image-grid">
344344
@{ var sortedMaps = Model.Rotation.MapRotationMaps?.OrderBy(m => m.SortOrder).ToList() ?? []; }
345345
@for (var i = 0; i < sortedMaps.Count; i++)
346346
{

src/XtremeIdiots.Portal.Web/Views/MapRotations/Details.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
}
6767
else
6868
{
69-
<div class="row g-2">
69+
<div class="row g-2 map-image-grid">
7070
@{ var sortedMaps = Model.Rotation.MapRotationMaps?.OrderBy(m => m.SortOrder).ToList() ?? []; }
7171
@for (var i = 0; i < sortedMaps.Count; i++)
7272
{

0 commit comments

Comments
 (0)