Closed
Description
Description
It is possible to insert images in issues as attachement. When such issues are displayed in Projects, the card often display some images on top of the issue. This is practical as it allow to peek issues by images and illustrations rather than reading titles.
Sometimes, images in cards are resized to fit in, and sometime they are full-sized.
Issue
However, sometime they are wider than the card, and overflow on the column containing the card (on the x axis).
- It display an horizontal scrollbar on the bottom of the column
- It move all cards of a column at once when scrolling horizontally
- It feel weird

Also, the images are overflowing the card while dragging it:
Suggestion
Make the images scrolls in the card instead:
- Scrollbars only in card having overflowing images
- Only scroll images in cards, not all cards of a column
- Scroll snap to the closest image
- Overlapping scrollbars on some OS and browsers (Windows 10<, Some Linux distros)
- Card properly framed while dragging

To create this effect I changed the following:
.issue-card {
/* [...] */
align-items:stretch;
}
.card-attachment-images {
/* [...] */
overflow:scroll;
cursor: default;
scroll-snap-type: x mandatory;
}
.card-attachment-images img {
/* [...] */
text-align: left;
scroll-snap-align: center;
}
What do you think ?
Screenshots

Gitea Version
1.22.0
Can you reproduce the bug on the Gitea demo site?
No
Operating System
No response
Browser Version
Firefox 128