0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-19 19:18:43 +02:00

Fix project images scroll (#34971) (#34972)

This commit is contained in:
wxiaoguang 2025-07-07 00:30:43 +08:00 committed by GitHub
parent 14ca309c39
commit 68fcdb6122
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,7 +71,7 @@
.card-attachment-images { .card-attachment-images {
display: inline-block; display: inline-block;
white-space: nowrap; white-space: nowrap;
overflow: scroll; overflow: auto;
cursor: default; cursor: default;
scroll-snap-type: x mandatory; scroll-snap-type: x mandatory;
text-align: center; text-align: center;
@ -85,6 +85,7 @@
scroll-snap-align: center; scroll-snap-align: center;
margin-right: 2px; margin-right: 2px;
aspect-ratio: 1; aspect-ratio: 1;
object-fit: contain;
} }
.card-attachment-images img:only-child { .card-attachment-images img:only-child {