From 0ca8d7fc032ab49c75602a06829be5149d8a0e43 Mon Sep 17 00:00:00 2001
From: Dan Brown <ssddanbrown@googlemail.com>
Date: Fri, 12 Feb 2021 23:10:30 +0000
Subject: [PATCH] Updated books list view description to be limited by css

Instead of length limited
Related to #1222
---
 resources/sass/_layout.scss               | 1 +
 resources/sass/_lists.scss                | 3 +++
 resources/views/books/list-item.blade.php | 2 +-
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/resources/sass/_layout.scss b/resources/sass/_layout.scss
index c12cae256..60205eaaa 100644
--- a/resources/sass/_layout.scss
+++ b/resources/sass/_layout.scss
@@ -256,6 +256,7 @@ body.flexbox {
   .tri-layout-middle {
     grid-area: b;
     padding-top: $-m;
+    min-width: 0;
   }
 }
 @include smaller-than($xxl) {
diff --git a/resources/sass/_lists.scss b/resources/sass/_lists.scss
index a3a58e6c6..d6ea66350 100644
--- a/resources/sass/_lists.scss
+++ b/resources/sass/_lists.scss
@@ -430,6 +430,9 @@ ul.pagination {
     flex: 1;
     text-align: start;
   }
+  > .content {
+    min-width: 0;
+  }
   &:not(.no-hover) {
     cursor: pointer;
   }
diff --git a/resources/views/books/list-item.blade.php b/resources/views/books/list-item.blade.php
index 17cf4c71f..a3ff0971f 100644
--- a/resources/views/books/list-item.blade.php
+++ b/resources/views/books/list-item.blade.php
@@ -5,7 +5,7 @@
     <div class="content">
         <h4 class="entity-list-item-name break-text">{{ $book->name }}</h4>
         <div class="entity-item-snippet">
-            <p class="text-muted break-text mb-s">{{ $book->getExcerpt() }}</p>
+            <p class="text-muted break-text mb-s text-limit-lines-1">{{ $book->description }}</p>
         </div>
     </div>
 </a>
\ No newline at end of file