abouttreesummaryrefslogcommitdiff
diff options
context:
space:
mode:
-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);