Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix scrollbar issues in dropdowns #10897

Merged
merged 6 commits into from
Apr 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions web_src/less/_base.less
Original file line number Diff line number Diff line change
Expand Up @@ -1220,3 +1220,11 @@ i.icon.centerlock {
.ui.attached.segment + .ui.attached.header {
margin-top: 1rem;
}

/* limit width of all direct dropdown menu children */
/* https://github.com/go-gitea/gitea/pull/10835 */
.dropdown > .menu > * {
max-width: 300px;
overflow-x: hidden;
text-overflow: ellipsis;
}
14 changes: 5 additions & 9 deletions web_src/less/_repository.less
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,17 @@
&.labels {
.label-filter .menu .info {
display: inline-block;
padding: 9px 7px 7px 7px;
text-align: center;
padding: .5rem .25rem;
border-bottom: 1px solid #cccccc;
font-size: 12px;
width: 100%;
white-space: nowrap;
text-align: center;

code {
border: 1px solid #cccccc;
border-radius: 3px;
padding: 3px 2px 1px 2px;
padding: 1px 2px;
font-size: 11px;
}
}
Expand All @@ -187,12 +189,6 @@
}

.select-label {
.item {
max-width: 250px;
overflow: hidden;
text-overflow: ellipsis;
}

.desc {
padding-left: 16px;
}
Expand Down