Mobile: discover carousels — center wrap, 2-up recommended + discover cards

- .discover-carousel / #genre-tabs: add justify-content:center to the wrap.
- .recommended-card--carousel: 45% (2-up) on mobile, overriding the flex-basis.
- .discover-card: 160px -> 45% (2-up) on mobile.
This commit is contained in:
BoulderBadgeDad 2026-06-04 20:24:47 -07:00
parent 273c4e5fa3
commit 2a509e74c3

View file

@ -128,6 +128,7 @@
width: 100%;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
}
.enh-compact-item.artist-card {
@ -1181,7 +1182,7 @@
}
.discover-card {
width: 160px;
width: 45%;
}
/* Horizontal scroll tabs */
@ -3463,3 +3464,13 @@
.np-modal-overlay:not(.hidden) ~ #media-player {
display: none !important;
}
@media (max-width: 768px) {
/* Recommended-artist carousel cards 2-up wrap on mobile. The base rule
pins them with flex:0 0 160px, which overrides plain width so override
the flex-basis too for the 45% to take. */
.recommended-card--carousel {
flex: 0 0 45%;
width: 45%;
}
}