fix
authorRadek Czajka <rczajka@rczajka.pl>
Tue, 1 Jun 2021 13:10:17 +0000 (15:10 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Tue, 1 Jun 2021 13:10:17 +0000 (15:10 +0200)
src/catalogue/templates/catalogue/collection_box.html
src/wolnelektury/static/scss/main/catalogue.scss

index 214db8b..6514735 100644 (file)
@@ -2,11 +2,11 @@
   {% load i18n %}
   <div class="collection-box white-box">
     <h2><a href="{{ collection.get_absolute_url }}">{% trans "Collection" %}: {{ collection }}</a></h2>
-    <p>
+    <div class="description">
     {% if collection.description %}
       {{ collection.description|safe|truncatewords_html:40 }}
     {% endif %}
-    </p>
+    </div>
     <div class="covers">
       {% for book in collection.get_books|slice:":5" %}
         <a href="{{ book.get_absolute_url }}">
index 8148930..db09f92 100644 (file)
         width: 465px;
     }
 
-    p {
+    .description {
         height: 75px;
         overflow: hidden;
+        margin: 15px 0;
     }
     .covers {
         line-height: 0;