diff --git a/bookwyrm/static/css/bookwyrm.css b/bookwyrm/static/css/bookwyrm.css
index 8e1aab25..fcb32e21 100644
--- a/bookwyrm/static/css/bookwyrm.css
+++ b/bookwyrm/static/css/bookwyrm.css
@@ -88,10 +88,11 @@ body {
.transition-y.is-hidden {
display: block !important;
visibility: hidden !important;
- height: 0;
- width: 0;
- margin: 0;
- padding: 0;
+ height: 0 !important;
+ width: 0 !important;
+ margin: 0 !important;
+ padding: 0 !important;
+ overflow: auto;
}
.transition-x,
diff --git a/bookwyrm/templates/directory/directory.html b/bookwyrm/templates/directory/directory.html
index f97a8481..88a7b15c 100644
--- a/bookwyrm/templates/directory/directory.html
+++ b/bookwyrm/templates/directory/directory.html
@@ -49,7 +49,3 @@
{% endblock %}
-
-{% block scripts %}
-
-{% endblock %}
diff --git a/bookwyrm/templates/layout.html b/bookwyrm/templates/layout.html
index 112640fb..2f8001dd 100644
--- a/bookwyrm/templates/layout.html
+++ b/bookwyrm/templates/layout.html
@@ -238,6 +238,7 @@
var csrf_token = '{{ csrf_token }}';
+
{% block scripts %}{% endblock %}