diff options
author | silverwind <me@silverwind.io> | 2021-12-11 06:12:18 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-11 16:12:18 +0200 |
commit | 379a5241c69cbedd8cdba04f57f3ee8c50083957 (patch) | |
tree | c059051cb70278e4f41f773996d198b40dcbac28 /web_src | |
parent | f550e356d6cfe84b2891776d778531afa92ef902 (diff) | |
download | gitea-379a5241c69cbedd8cdba04f57f3ee8c50083957.tar.gz gitea-379a5241c69cbedd8cdba04f57f3ee8c50083957.zip |
Fix overflow in commit graph (#17947)
* Fix overflow in commit graph
Limit commit message to 50% width. This is rather crude but should work
for common use cases with not too-long author names.
Fixes: https://github.com/go-gitea/gitea/issues/17944
* Make it work with dynamic width
* use span
* use explicit none
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/less/features/gitgraph.less | 1 | ||||
-rw-r--r-- | web_src/less/helpers.less | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/web_src/less/features/gitgraph.less b/web_src/less/features/gitgraph.less index f664a31d57..25dcc02159 100644 --- a/web_src/less/features/gitgraph.less +++ b/web_src/less/features/gitgraph.less @@ -137,6 +137,7 @@ .author .ui.avatar.image { width: auto; height: 18px; + max-width: none; } } diff --git a/web_src/less/helpers.less b/web_src/less/helpers.less index a4e8243cc7..f35412fd0e 100644 --- a/web_src/less/helpers.less +++ b/web_src/less/helpers.less @@ -28,6 +28,12 @@ word-wrap: break-word !important; } +.ellipsis { + overflow: hidden !important; + white-space: nowrap !important; + text-overflow: ellipsis !important; +} + .full-screen-width { width: 100vw !important; } .full-screen-height { height: 100vh !important; } |