summaryrefslogtreecommitdiffstats
path: root/web_src/less/_base.less
diff options
context:
space:
mode:
authorvnkmpf <tz@zztt.eu>2021-02-12 02:29:07 +0100
committerGitHub <noreply@github.com>2021-02-12 03:29:07 +0200
commit51fb0463a349fd6eeb58ceeebd9ccf2267200ae6 (patch)
tree9a97da5924b6bfdfb77959ca63ad705abdcd6584 /web_src/less/_base.less
parent5a18712dd7dcffecf88d3071381a836a543d8f2a (diff)
downloadgitea-51fb0463a349fd6eeb58ceeebd9ccf2267200ae6.tar.gz
gitea-51fb0463a349fd6eeb58ceeebd9ccf2267200ae6.zip
Fix truncated organization names (#14655)
* Fix truncated organization names Previous ellipsis implementation hid vertical overflow - image + descent line of letters. Organization visibility in select on dashboard was not always visible. This commit extracts classes which don't make collisions with other items on page.
Diffstat (limited to 'web_src/less/_base.less')
-rw-r--r--web_src/less/_base.less20
1 files changed, 13 insertions, 7 deletions
diff --git a/web_src/less/_base.less b/web_src/less/_base.less
index c054c1dc12..2b27e41e61 100644
--- a/web_src/less/_base.less
+++ b/web_src/less/_base.less
@@ -347,9 +347,6 @@ a.muted:hover,
.ui.selection.dropdown .menu > .item {
border-color: var(--color-secondary);
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
}
.ui.selection.visible.dropdown > .text:not(.default) {
@@ -390,10 +387,6 @@ a.muted:hover,
.ui.menu .ui.dropdown .menu > .item {
color: var(--color-text) !important;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- display: block;
}
.ui.menu .ui.dropdown .menu > .item:hover {
@@ -2002,3 +1995,16 @@ table th[data-sortt-desc] {
display: block;
text-align: left;
}
+
+.truncated-item-container {
+ display: flex !important;
+}
+
+.truncated-item-name {
+ line-height: 2em;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ margin-top: -.5em;
+ margin-bottom: -.5em;
+}