Skip to content

Commit 00f27a3

Browse files
committed
STYLE: keep member cards fixed-size while reducing columns on small screens
1 parent 4242813 commit 00f27a3

1 file changed

Lines changed: 20 additions & 4 deletions

File tree

group.html

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,17 +129,18 @@
129129
list-style: none;
130130
padding: 0;
131131
display: grid;
132-
grid-template-columns: repeat(4, 1fr);
133-
gap: 25px;
132+
grid-template-columns: repeat(4, 140px);
133+
justify-content: center;
134+
gap: 25px 20px;
134135
}
135136

136137
.member-item {
137138
text-align: center;
138139
}
139140

140141
.member-item img {
141-
width: 100%;
142-
max-width: 140px;
142+
width: 140px;
143+
max-width: none;
143144
height: auto;
144145
aspect-ratio: 1/1;
145146
object-fit: cover;
@@ -168,6 +169,21 @@
168169
}
169170

170171
.member-item a:hover { text-decoration: underline; }
172+
@media (max-width: 760px) {
173+
.member-list {
174+
grid-template-columns: repeat(3, 140px);
175+
}
176+
}
177+
@media (max-width: 560px) {
178+
.member-list {
179+
grid-template-columns: repeat(2, 140px);
180+
}
181+
}
182+
@media (max-width: 360px) {
183+
.member-list {
184+
grid-template-columns: repeat(1, 140px);
185+
}
186+
}
171187

172188
/* Gallery preview */
173189
.gallery-preview {

0 commit comments

Comments
 (0)