diff options
author | velengel <kounakadora528@gmail.com> | 2021-11-23 11:44:10 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-22 21:44:10 -0500 |
commit | a1f5c7bfce6af221930df8c417057ca7946c810e (patch) | |
tree | 6768bd8a37b4d7b3b5aa676037106aed70199422 /web_src/less | |
parent | b2daa7e2032fdb015bc2990e22082c46f4e08d63 (diff) | |
download | gitea-a1f5c7bfce6af221930df8c417057ca7946c810e.tar.gz gitea-a1f5c7bfce6af221930df8c417057ca7946c810e.zip |
Add copy Commit ID button in commits list (#17759)
* fix: implement commit id copy to clipboard
* fix: remove abundant attributes / consider edge-case
* fix: locale_en fixed
* fix: use ui button
* tune copy button
* fix: button size
* Fix merge
Co-authored-by: Ysmr-Ry <ryo.yossy@live.jp>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'web_src/less')
-rw-r--r-- | web_src/less/_base.less | 7 | ||||
-rw-r--r-- | web_src/less/_repository.less | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/web_src/less/_base.less b/web_src/less/_base.less index c09f3a2bdd..1477c1af49 100644 --- a/web_src/less/_base.less +++ b/web_src/less/_base.less @@ -985,6 +985,13 @@ a.ui.card:hover, margin: 0 6px; } + .button.copy-commit-sha { + border: 1px solid var(--color-light-border); + margin-right: 3px; + padding: 6px 6px 4px; + background: var(--color-light); + } + .button.truncate { display: inline-block; max-width: 100%; diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index 85607881dc..e0f8b98fa2 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -1364,7 +1364,7 @@ text-align: center; } - width: 175px; + width: 200px; } } |