aboutsummaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-08-23 21:05:17 +0200
committerGitHub <noreply@github.com>2020-08-23 20:05:17 +0100
commitdd8ec121880fda03691cf9f4b17be88e1d4be030 (patch)
treec6379e584b2a3b57ee9ef00d59ca1151d6b5294c /web_src
parentd2cee3eea60cd0e459e665dad289b2c5adc1a2a5 (diff)
downloadgitea-dd8ec121880fda03691cf9f4b17be88e1d4be030.tar.gz
gitea-dd8ec121880fda03691cf9f4b17be88e1d4be030.zip
Increase clickable area on files table links (#12553)
Diffstat (limited to 'web_src')
-rw-r--r--web_src/less/_repository.less15
1 files changed, 10 insertions, 5 deletions
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less
index becc2e216a..eb316ee71e 100644
--- a/web_src/less/_repository.less
+++ b/web_src/less/_repository.less
@@ -345,8 +345,8 @@
}
td {
- padding-top: 8px;
- padding-bottom: 8px;
+ padding-top: 0;
+ padding-bottom: 0;
overflow: initial;
&.name {
@@ -361,14 +361,19 @@
width: 120px;
}
- .truncate {
+ > a {
+ width: calc(100% - 8px); /* prevent overflow into adjacant cell */
display: inline-block;
- max-width: 100%;
+ padding-top: 8px;
+ padding-bottom: 8px;
overflow: hidden;
text-overflow: ellipsis;
- vertical-align: top;
white-space: nowrap;
}
+
+ > * {
+ vertical-align: middle;
+ }
}
td.message .isSigned {