aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/css/base.css
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-09-03 10:58:52 +0800
committerGitHub <noreply@github.com>2023-09-03 02:58:52 +0000
commitfba7150ca9decee3e9c9fcd8ddeeef939231f8ec (patch)
treef330f27c3cc914d23a5b5cbadb9088b6bbe5bda9 /web_src/css/base.css
parentf1fe102c8c9146f8cb997779a4e802691cd1d366 (diff)
downloadgitea-fba7150ca9decee3e9c9fcd8ddeeef939231f8ec.tar.gz
gitea-fba7150ca9decee3e9c9fcd8ddeeef939231f8ec.zip
Refactor "shortsha" (#26877)
The old code used complex `if` blocks and strange HTML layouts. <details> ![image](https://github.com/go-gitea/gitea/assets/2114189/7fbee2b8-d150-4e6b-b67e-83400fa290eb) </details> This PR refactors the template code and remove legacy CSS styles. The UI doesn't change much. ![image](https://github.com/go-gitea/gitea/assets/2114189/3e195df9-0ab5-4182-bcb2-bb20cad823f2) ![image](https://github.com/go-gitea/gitea/assets/2114189/f707a49f-be41-4dfe-871f-2869f2230380)
Diffstat (limited to 'web_src/css/base.css')
-rw-r--r--web_src/css/base.css6
1 files changed, 5 insertions, 1 deletions
diff --git a/web_src/css/base.css b/web_src/css/base.css
index 53c6f78206..9d7c12525e 100644
--- a/web_src/css/base.css
+++ b/web_src/css/base.css
@@ -1308,9 +1308,13 @@ img.ui.avatar,
.ui .sha.label {
font-family: var(--fonts-monospace);
font-size: 13px;
- padding: 6px 10px 4px;
font-weight: var(--font-weight-normal);
margin: 0 6px;
+ padding: 5px 10px;
+}
+
+.ui .sha.label .shortsha {
+ display: inline-block; /* not sure whether it is still needed */
}
.ui .button.copy-commit-sha {