diff options
author | Unknwon <u@gogs.io> | 2016-01-11 20:41:43 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-01-11 20:41:43 +0800 |
commit | f43cc908411a62c9252eb42484e5096810272369 (patch) | |
tree | 32220fed52d2f9c416dd94d26ebaf267caebca23 /public | |
parent | a2ef9a2b648422610a7f2cc6211e1f7a9549575f (diff) | |
download | gitea-f43cc908411a62c9252eb42484e5096810272369.tar.gz gitea-f43cc908411a62c9252eb42484e5096810272369.zip |
#2287 Truncate repository name if too long
Diffstat (limited to 'public')
-rwxr-xr-x | public/css/gogs.css | 15 | ||||
-rw-r--r-- | public/less/_dashboard.less | 18 | ||||
-rw-r--r-- | public/less/_explore.less | 5 |
3 files changed, 38 insertions, 0 deletions
diff --git a/public/css/gogs.css b/public/css/gogs.css index b6d2616586..452d4a19a5 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -3057,6 +3057,18 @@ footer .container .links > *:first-child { margin-right: 6px; color: #888; } +.feeds .list .repo-owner-name-list .item-name { + max-width: 70%; + margin-bottom: -4px; +} +.feeds .list #collaborative-repo-list .owner-and-repo { + max-width: 80%; + margin-bottom: -5px; +} +.feeds .list #collaborative-repo-list .owner-name { + max-width: 120px; + margin-bottom: -5px; +} .admin { padding-top: 15px; padding-bottom: 80px; @@ -3117,6 +3129,9 @@ footer .container .links > *:first-child { font-size: 1.5rem; padding-bottom: 10px; } +.ui.repository.list .item .ui.header .name { + word-break: break-all; +} .ui.repository.list .item .ui.header .metas { color: #888; font-size: 13px; diff --git a/public/less/_dashboard.less b/public/less/_dashboard.less index 6f4fbb196b..f194dc1282 100644 --- a/public/less/_dashboard.less +++ b/public/less/_dashboard.less @@ -123,5 +123,23 @@ } } } + + .repo-owner-name-list { + .item-name { + max-width: 70%; + margin-bottom: -4px; + } + } + + #collaborative-repo-list { + .owner-and-repo { + max-width: 80%; + margin-bottom: -5px; + } + .owner-name { + max-width: 120px; + margin-bottom: -5px; + } + } } } diff --git a/public/less/_explore.less b/public/less/_explore.less index 53a6b5a46c..5141d49928 100644 --- a/public/less/_explore.less +++ b/public/less/_explore.less @@ -15,6 +15,11 @@ .ui.header { font-size: 1.5rem; padding-bottom: 10px; + + .name { + word-break: break-all; + } + .metas { color: #888; font-size: 13px; |