abouttreesummaryrefslogcommitdiff
diff options
context:
space:
mode:
authorPatrick2025-12-31 12:52:45 +0100
committerPatrick2025-12-31 12:52:45 +0100
commit29e06d66a33442a44d47e8741371072873c19cce (patch)
tree6052e7d8195d740ed549f22a85971b94d56c2604
parent915444ebb07079a8ac029953d2a8e1a1fc29c7d1 (diff)
downloadps-cgit-29e06d66a33442a44d47e8741371072873c19cce.tar.gz
ps-cgit-29e06d66a33442a44d47e8741371072873c19cce.zip
css for Show All checkbox
-rw-r--r--cgithub/head-include.html6
-rw-r--r--ui-tree.c2
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;
}
</style>
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("<tr><td colspan=\"4\"><input type=\"checkbox\" id=\"show-all\"><label for=\"show-all\">Show All</label></td></tr>");
+ html("<tr class=\"nohover\"><th class=\"left\" colspan=\"4\"><input type=\"checkbox\" id=\"show-all\"><label for=\"show-all\">Show All</label></th></tr>");
html("</table>\n");
if (tree)
cgit_print_repo_readme_no_layout(tree, paths);