diff options
| author | Patrick | 2025-12-30 21:26:12 +0100 |
|---|---|---|
| committer | Patrick | 2025-12-30 21:26:12 +0100 |
| commit | 1239bc3eaaf80f2f97c00acc80a66f1d891c103b (patch) | |
| tree | 8e9586c773616272e2ac785842f1d4e35d84b6c5 | |
| parent | 57acc37af734aa7505457c4f6549a8bb1bd00169 (diff) | |
| download | ps-cgit-1239bc3eaaf80f2f97c00acc80a66f1d891c103b.tar.gz ps-cgit-1239bc3eaaf80f2f97c00acc80a66f1d891c103b.zip | |
expandable file tree table
| -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); |
