aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/css/repo.css
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-08-18 05:50:32 +0800
committerGitHub <noreply@github.com>2023-08-17 21:50:32 +0000
commitfe2b9274b13f33fdfa77e2ae46f63b31a92a810a (patch)
tree4b56130e7b10e5c3d951ef8edb5f10da96eb931f /web_src/css/repo.css
parentb658f2c61bc70f0ce79d1be7eb1d7654273716e3 (diff)
downloadgitea-fe2b9274b13f33fdfa77e2ae46f63b31a92a810a.tar.gz
gitea-fe2b9274b13f33fdfa77e2ae46f63b31a92a810a.zip
Fix various line-height styles (#26553)
Fix #26537 Use the same default line-height as "normalize.css" instead of "1". "1" is not right because it doesn't work with descent part and causes overflow problems. ![image](https://github.com/go-gitea/gitea/assets/2114189/3f2e8fb5-b326-4889-bfff-c79c75f1b7f4) --------- Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'web_src/css/repo.css')
-rw-r--r--web_src/css/repo.css4
1 files changed, 2 insertions, 2 deletions
diff --git a/web_src/css/repo.css b/web_src/css/repo.css
index 34fa2a0052..8e8125a5f4 100644
--- a/web_src/css/repo.css
+++ b/web_src/css/repo.css
@@ -390,8 +390,8 @@
}
.repository.file.list .non-diff-file-content .header .file-actions .btn-octicon {
- line-height: 1;
- padding: 10px 8px;
+ line-height: var(--line-height-default);
+ padding: 8px;
vertical-align: middle;
color: var(--color-text);
}