diff options
| -rw-r--r-- | cgithub/head-include.html | 7 | ||||
| -rw-r--r-- | ui-tree.c | 2 |
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"> @@ -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); |
