diff options
| author | Patrick | 2025-12-30 21:50:14 +0100 |
|---|---|---|
| committer | Patrick | 2025-12-30 21:50:14 +0100 |
| commit | d0fc7b26ea7ec8f4139393dbf243a67b3a528205 (patch) | |
| tree | 98ac78bc6cd35f0b342b17777abef904eb4f5a36 | |
| parent | 8bfc4ccbb41071d6d30b9bfa381d56528f530b1d (diff) | |
| download | ps-cgit-d0fc7b26ea7ec8f4139393dbf243a67b3a528205.tar.gz ps-cgit-d0fc7b26ea7ec8f4139393dbf243a67b3a528205.zip | |
fix expand table
| -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); |
