abouttreesummaryrefslogcommitdiff
diff options
context:
space:
mode:
authorPatrick2025-12-30 21:50:14 +0100
committerPatrick2025-12-30 21:50:14 +0100
commitd0fc7b26ea7ec8f4139393dbf243a67b3a528205 (patch)
tree98ac78bc6cd35f0b342b17777abef904eb4f5a36
parent8bfc4ccbb41071d6d30b9bfa381d56528f530b1d (diff)
downloadps-cgit-d0fc7b26ea7ec8f4139393dbf243a67b3a528205.tar.gz
ps-cgit-d0fc7b26ea7ec8f4139393dbf243a67b3a528205.zip
fix expand table
-rw-r--r--cgithub/head-include.html7
-rw-r--r--ui-tree.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/cgithub/head-include.html b/cgithub/head-include.html
index 5a084b2..6ee3f2f 100644
--- a/cgithub/head-include.html
+++ b/cgithub/head-include.html
@@ -21,6 +21,13 @@
table.list tr:nth-child(n+11):has(~ tr td input[type=checkbox]:not(:checked)) {
display: none;
}
+table.list tr:nth-child(n+11) ~ tr:has(td input[type=checkbox]:not(:checked)) {
+ display: table-row;
+}
+
+table.list tr:has(td input[type=checkbox]) {
+ display: none;
+}
</style>
<script type="module">
diff --git a/ui-tree.c b/ui-tree.c
index 6dfd408..a24151f 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -298,7 +298,7 @@ static void ls_head(void)
static void ls_tail(const struct tree *tree, struct pathspec *paths)
{
- html("<tr style=\"display: table-row;\"><td colspan=\"4\"><input type=\"checkbox\" id=\"show-all\"><label for=\"show-all\">Show All</label></td></tr>");
+ html("<tr><td colspan=\"4\"><input type=\"checkbox\" id=\"show-all\"><label for=\"show-all\">Show All</label></td></tr>");
html("</table>\n");
if (tree)
cgit_print_repo_readme_no_layout(tree, paths);