1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-25 13:19:37 -05:00

[PORT] Scroll images in project issues separately from the remaining issue (gitea#31683)

As discussed in https://github.com/go-gitea/gitea/issues/31667 &
https://github.com/go-gitea/gitea/issues/26561, when a card on a Project
contains images, they can overflow the card on its containing column.
This aims to fix this issue via snapping scrollbars.

---
Backport: #5029
Conflict resolution: none
Modification: Remove the snapping of the images on the projects cards, the images are way too small to notice that when scrolling you're being snapped to these images and when you do notice it, it doesn't make sense as you wouldn't expect it to be snapped.

(cherry picked from commit 8e46efef95)
This commit is contained in:
Simon Priet 2024-08-13 01:36:28 +02:00 committed by Gusted
parent a84730775a
commit 7d133488b7
No known key found for this signature in database
GPG key ID: FD821B732837125F
2 changed files with 7 additions and 2 deletions

View file

@ -79,7 +79,9 @@
.card-attachment-images {
display: inline-block;
white-space: nowrap;
overflow: hidden;
overflow: scroll;
cursor: default;
scroll-snap-type: x mandatory;
text-align: center;
}
@ -87,7 +89,10 @@
display: inline-block;
max-height: 50px;
border-radius: var(--border-radius);
text-align: left;
scroll-snap-align: center;
margin-right: 2px;
aspect-ratio: 1;
}
.card-attachment-images img:only-child {

View file

@ -1,7 +1,7 @@
.issue-card {
display: flex;
flex-direction: column;
align-items: start;
align-items: stretch;
border-radius: var(--border-radius);
padding: 8px 10px;
border: 1px solid var(--color-secondary);