summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorvnkmpf <t.z@mail.com>2021-02-09 20:51:01 +0100
committerGitHub <noreply@github.com>2021-02-09 19:51:01 +0000
commit3a4801d1958ce33c9b893433c096281aa5b9b1c5 (patch)
treebe43c76ff7a7f52368fcb0dc46b8c1773a127c07 /web_src
parentb337c606d3669b3e2f9b805d6c74b593d6271414 (diff)
downloadgitea-3a4801d1958ce33c9b893433c096281aa5b9b1c5.tar.gz
gitea-3a4801d1958ce33c9b893433c096281aa5b9b1c5.zip
Truncated organisations name #14583 (#14615)
- truncate to max length 40 - add CSS ellipsis
Diffstat (limited to 'web_src')
-rw-r--r--web_src/less/_base.less7
-rw-r--r--web_src/less/_form.less4
2 files changed, 11 insertions, 0 deletions
diff --git a/web_src/less/_base.less b/web_src/less/_base.less
index 6b16143bb1..b5c890fd61 100644
--- a/web_src/less/_base.less
+++ b/web_src/less/_base.less
@@ -347,6 +347,9 @@ 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) {
@@ -387,6 +390,10 @@ 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 {
diff --git a/web_src/less/_form.less b/web_src/less/_form.less
index 76c1a06990..a4842edd01 100644
--- a/web_src/less/_form.less
+++ b/web_src/less/_form.less
@@ -278,6 +278,10 @@ textarea:focus,
form {
.dropdown .text {
margin-right: 0 !important;
+
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
}
.header {