diff options
author | silverwind <me@silverwind.io> | 2020-04-04 23:29:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-04 18:29:15 -0300 |
commit | 6cf71ee0e8178a2775d2d1041912ca45372805fb (patch) | |
tree | f0cd7535b31144145f039271a202cab3c97f3062 | |
parent | a0cc4b3d087439607a5b7645d7552d4fda21f92c (diff) | |
download | gitea-6cf71ee0e8178a2775d2d1041912ca45372805fb.tar.gz gitea-6cf71ee0e8178a2775d2d1041912ca45372805fb.zip |
Fix scrollbar issues in dropdowns (#10897)
* Fix scrollbar issues in dropdowns
Fixes: https://github.com/go-gitea/gitea/pull/10835
* remove wrapping
* grammar
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
-rw-r--r-- | web_src/less/_base.less | 8 | ||||
-rw-r--r-- | web_src/less/_repository.less | 14 |
2 files changed, 13 insertions, 9 deletions
diff --git a/web_src/less/_base.less b/web_src/less/_base.less index d79aee3e9d..ba3bbff369 100644 --- a/web_src/less/_base.less +++ b/web_src/less/_base.less @@ -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; +} diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index 3b2467b500..d3e84b10a4 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -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; } } @@ -187,12 +189,6 @@ } .select-label { - .item { - max-width: 250px; - overflow: hidden; - text-overflow: ellipsis; - } - .desc { padding-left: 16px; } |