Skip to content

Commit e6ca3b5

Browse files
committed
fix: max-width for cards and attachments (fixes: go-gitea#29029)
1 parent 48525f0 commit e6ca3b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

web_src/css/features/projects.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
margin: 0 !important;
6060
flex-direction: column;
6161
gap: .25rem;
62+
max-width: 100%;
6263
}
6364

6465
.cards-wrapper > .note-cards {
@@ -93,6 +94,7 @@
9394

9495
.card-attachment-images {
9596
display: inline-block;
97+
max-width: 100%;
9698
white-space: nowrap;
9799
overflow: hidden;
98100
text-align: center;
@@ -101,6 +103,7 @@
101103
.card-attachment-images img {
102104
display: inline-block;
103105
max-height: 50px;
106+
max-width: 100%;
104107
border-radius: var(--border-radius);
105108
margin-right: 2px;
106109
}

0 commit comments

Comments
 (0)