diff options
| -rw-r--r-- | cgithub/head-include.html | 4 | ||||
| -rw-r--r-- | ui-tree.c | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/cgithub/head-include.html b/cgithub/head-include.html index aa952f5..3a5f2e7 100644 --- a/cgithub/head-include.html +++ b/cgithub/head-include.html @@ -18,7 +18,9 @@ margin: var(--content-v-margin) auto; margin-top: 0; margin-bottom: 0; } - +table.list tr:nth-child(n+11):not(:has(~ tr td input[type=checkbox]:checked)) { + display: none; +} </style> <script type="module"> @@ -298,6 +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("</table>\n"); if (tree) cgit_print_repo_readme_no_layout(tree, paths); |
