From 29e06d66a33442a44d47e8741371072873c19cce Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 31 Dec 2025 12:52:45 +0100 Subject: css for Show All checkbox --- cgithub/head-include.html | 6 +++--- ui-tree.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cgithub/head-include.html b/cgithub/head-include.html index bc8192f..2973be3 100644 --- a/cgithub/head-include.html +++ b/cgithub/head-include.html @@ -18,13 +18,13 @@ margin: var(--content-v-margin) auto; margin-top: 0; margin-bottom: 0; } -table.list tr:nth-child(n+12):has(~ tr td input[type=checkbox]:not(:checked)) { +table.list tr:nth-child(n+12):has(~ tr th input[type=checkbox]:not(:checked)) { display: none; } -table.list tr:nth-child(n+12) ~ tr:has(td input[type=checkbox]) { +table.list tr:nth-child(n+12) ~ tr:has(th input[type=checkbox]) { display: table-row; } -table.list tr:has(td input[type=checkbox]) { +table.list tr:has(th input[type=checkbox]) { display: none; } diff --git a/ui-tree.c b/ui-tree.c index b961331..605d0a4 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -298,7 +298,7 @@ static void ls_head(void) static void ls_tail(struct tree *tree, struct pathspec *paths) { - html(""); + html(""); html("\n"); if (tree) cgit_print_repo_readme_no_layout(tree, paths); -- cgit v1.2.3