]> BookStack Code Mirror - bookstack/commitdiff
Updated books list view description to be limited by css
authorDan Brown <redacted>
Fri, 12 Feb 2021 23:10:30 +0000 (23:10 +0000)
committerDan Brown <redacted>
Fri, 12 Feb 2021 23:10:30 +0000 (23:10 +0000)
Instead of length limited
Related to #1222

resources/sass/_layout.scss
resources/sass/_lists.scss
resources/views/books/list-item.blade.php

index c12cae256e6d424dcd3e590c115ecfceca3c20ad..60205eaaacc3f42088800874b6760f963bc9ae26 100644 (file)
@@ -256,6 +256,7 @@ body.flexbox {
   .tri-layout-middle {
     grid-area: b;
     padding-top: $-m;
   .tri-layout-middle {
     grid-area: b;
     padding-top: $-m;
+    min-width: 0;
   }
 }
 @include smaller-than($xxl) {
   }
 }
 @include smaller-than($xxl) {
index a3a58e6c6cd5c66f678d2681d6744f6847748a31..d6ea66350ebecf15fd0a59b95528e713923a990c 100644 (file)
@@ -430,6 +430,9 @@ ul.pagination {
     flex: 1;
     text-align: start;
   }
     flex: 1;
     text-align: start;
   }
+  > .content {
+    min-width: 0;
+  }
   &:not(.no-hover) {
     cursor: pointer;
   }
   &:not(.no-hover) {
     cursor: pointer;
   }
index 17cf4c71f9878117471b6afef38f3eccff615331..a3ff0971f117cd6a8d7f748718d7176ba2af1b8f 100644 (file)
@@ -5,7 +5,7 @@
     <div class="content">
         <h4 class="entity-list-item-name break-text">{{ $book->name }}</h4>
         <div class="entity-item-snippet">
     <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
         </div>
     </div>
 </a>
\ No newline at end of file