diff --git a/nyaa/templates/view.html b/nyaa/templates/view.html
index 833319e..187a056 100644
--- a/nyaa/templates/view.html
+++ b/nyaa/templates/view.html
@@ -93,9 +93,10 @@
{% for key, value in files.items() recursive -%}
{% if value is iterable %}
+ {% set pre_expanded = not loop.depth0 and value.items()|length <= 20 %}
-
- {{ key }}
-
{{ '\n' + loop(value.items()) }}
+ {{ key }}
+ {{ '\n' + loop(value.items()) }}
{% else %}