Skip to content

Commit e9e421b

Browse files
committed
Fix contributor grid responsiveness
Also removed a unneeded and actually conflicting class name. Fixes: go-gitea#29192
1 parent 1f0625a commit e9e421b

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

web_src/js/components/RepoContributors.vue

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,8 @@ export default {
370370
</div>
371371
<div class="contributor-grid">
372372
<div
373-
v-for="(contributor, index) in sortedContributors" :key="index" class="stats-table"
373+
v-for="(contributor, index) in sortedContributors"
374+
:key="index"
374375
v-memo="[sortedContributors, type]"
375376
>
376377
<div class="ui top attached header gt-df gt-f1">
@@ -406,13 +407,25 @@ export default {
406407
<style scoped>
407408
.main-graph {
408409
height: 260px;
410+
padding-top: 2px;
409411
}
412+
410413
.contributor-grid {
411414
display: grid;
412415
grid-template-columns: repeat(2, 1fr);
413416
gap: 1rem;
414417
}
415418
419+
.contributor-grid > * {
420+
min-width: 0;
421+
}
422+
423+
@media (max-width: 991.98px) {
424+
.contributor-grid {
425+
grid-template-columns: repeat(1, 1fr);
426+
}
427+
}
428+
416429
.contributor-name {
417430
margin-bottom: 0;
418431
}

0 commit comments

Comments
 (0)