aboutsummaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-07-25 07:43:39 -0400
committerGitHub <noreply@github.com>2023-07-25 11:43:39 +0000
commit3b518a3af5541c90582deba7bee8fba13d39e1ed (patch)
treed28e1d589f26096edf4cdce73536be6816d1e82a /web_src
parent08cdc0da3d6a649892a3687635640d02e3cd9fcf (diff)
downloadgitea-3b518a3af5541c90582deba7bee8fba13d39e1ed.tar.gz
gitea-3b518a3af5541c90582deba7bee8fba13d39e1ed.zip
Improve commit graph alignment and truncating (#26112) (#26127)
Backport #26112 by @wxiaoguang Fix #26101 ![image](https://github.com/go-gitea/gitea/assets/2114189/7507d201-822e-4534-8b20-e659d56b1268) Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/css/features/gitgraph.css7
1 files changed, 6 insertions, 1 deletions
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 {