diff --git a/lectures/templates/lectures/view_lecture.html b/lectures/templates/lectures/view_lecture.html
index 1477c0d2271576c679a7775dcf19bd73b9c74b56..505e8dec92e83a9882ec41ab0ad18669a90bab59 100644
--- a/lectures/templates/lectures/view_lecture.html
+++ b/lectures/templates/lectures/view_lecture.html
@@ -71,9 +71,9 @@
                         {% endfor %}
                     </ul>
                 {% else %}
-                    <span
-                        class="text-gray-200 my-3 py-3 border-y border-gray-200"
-                    >Žádné materiály.</span>
+                    <div
+                        class="text-gray-200 my-3 py-[1.125rem] border-y border-gray-200"
+                    >Žádné materiály.</div>
                 {% endif %}
             {% endwith %}
         </section>
@@ -96,9 +96,9 @@
                         {% endfor %}
                     </ul>
                 {% else %}
-                    <span
-                        class="text-gray-200 my-3 py-3 border-y border-gray-200"
-                    >Žádné nahrávky.</span>
+                    <div
+                        class="text-gray-200 my-3 py-[1.125rem] border-y border-gray-200"
+                    >Žádné nahrávky.</div>
                 {% endif %}
             {% endwith %}
         </section>