Skip to content

Commit 6cf71ee

Browse files
Fix scrollbar issues in dropdowns (#10897)
* Fix scrollbar issues in dropdowns Fixes: #10835 * remove wrapping * grammar Co-authored-by: guillep2k <[email protected]>
1 parent a0cc4b3 commit 6cf71ee

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
@@ -1220,3 +1220,11 @@ i.icon.centerlock {
12201220
.ui.attached.segment + .ui.attached.header {
12211221
margin-top: 1rem;
12221222
}
1223+
1224+
/* limit width of all direct dropdown menu children */
1225+
/* https://github.com/go-gitea/gitea/pull/10835 */
1226+
.dropdown > .menu > * {
1227+
max-width: 300px;
1228+
overflow-x: hidden;
1229+
text-overflow: ellipsis;
1230+
}

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 .25rem;
160159
border-bottom: 1px solid #cccccc;
161160
font-size: 12px;
161+
width: 100%;
162+
white-space: nowrap;
163+
text-align: center;
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)