From ad5ce5980063850a23cb2ed0d1d74000000bb8d1 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Tue, 25 Jul 2023 18:17:41 +0800 Subject: Improve commit graph alignment and truncating (#26112) Fix #26101 ![image](https://github.com/go-gitea/gitea/assets/2114189/7507d201-822e-4534-8b20-e659d56b1268) --- web_src/css/features/gitgraph.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'web_src/css/features') diff --git a/web_src/css/features/gitgraph.css b/web_src/css/features/gitgraph.css index 0ca611d641..a49e930948 100644 --- a/web_src/css/features/gitgraph.css +++ b/web_src/css/features/gitgraph.css @@ -109,8 +109,13 @@ background-color: var(--color-secondary-alpha-30); } -#git-graph-container #rev-list .tags a.button { +#git-graph-container #rev-list .commit-refs .button { padding: 2px 4px; + margin-right: 0.25em; + display: inline-block; + max-width: 200px; + overflow: hidden; + text-overflow: ellipsis; } #git-graph-container #rev-list .sha.label { -- cgit v1.2.3