aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/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
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')
-rw-r--r--web_src/less/_base.less20
-rw-r--r--web_src/less/_dashboard.less4
-rw-r--r--web_src/less/_form.less4
3 files changed, 17 insertions, 11 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;
+}
diff --git a/web_src/less/_dashboard.less b/web_src/less/_dashboard.less
index 4ffdc9136f..d5fac494f1 100644
--- a/web_src/less/_dashboard.less
+++ b/web_src/less/_dashboard.less
@@ -75,6 +75,10 @@
.org-visibility .label {
margin-left: 5px;
}
+
+ .ui.dropdown {
+ max-width: 100%;
+ }
}
}
diff --git a/web_src/less/_form.less b/web_src/less/_form.less
index a4842edd01..76c1a06990 100644
--- a/web_src/less/_form.less
+++ b/web_src/less/_form.less
@@ -278,10 +278,6 @@ textarea:focus,
form {
.dropdown .text {
margin-right: 0 !important;
-
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
}
.header {