Skip to content

Commit 31a12dd

Browse files
committed
Fix scrollbar issues in dropdowns
Fixes: #10835
1 parent 3723b06 commit 31a12dd

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

web_src/less/_base.less

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,3 +1216,11 @@ i.icon.centerlock {
12161216
.ui.attached.segment + .ui.attached.header {
12171217
margin-top: 1rem;
12181218
}
1219+
1220+
/* limit width of all direct dropdowns menu children */
1221+
/* https://github.com/go-gitea/gitea/pull/10835 */
1222+
.dropdown > .menu > * {
1223+
max-width: 300px;
1224+
overflow-x: hidden;
1225+
text-overflow: ellipsis;
1226+
}

web_src/less/_repository.less

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,17 @@
155155
&.labels {
156156
.label-filter .menu .info {
157157
display: inline-block;
158-
padding: 9px 7px 7px 7px;
159-
text-align: center;
158+
padding: .5rem;
160159
border-bottom: 1px solid #cccccc;
161160
font-size: 12px;
161+
width: 100%;
162+
white-space: normal;
163+
line-height: 1.4;
162164

163165
code {
164166
border: 1px solid #cccccc;
165167
border-radius: 3px;
166-
padding: 3px 2px 1px 2px;
168+
padding: 1px 2px;
167169
font-size: 11px;
168170
}
169171
}
@@ -187,12 +189,6 @@
187189
}
188190

189191
.select-label {
190-
.item {
191-
max-width: 250px;
192-
overflow: hidden;
193-
text-overflow: ellipsis;
194-
}
195-
196192
.desc {
197193
padding-left: 16px;
198194
}

0 commit comments

Comments
 (0)