diff --git a/resources/assets/sass/_lists.scss b/resources/assets/sass/_lists.scss index 604334415..5f06e1da9 100644 --- a/resources/assets/sass/_lists.scss +++ b/resources/assets/sass/_lists.scss @@ -412,8 +412,6 @@ ul.pagination { line-height: 1.2; color: #009688;; text-decoration: none; - white-space: pre-wrap; /* css-3 */ - word-wrap: break-word; /* Internet Explorer 5.5+ */ } p { font-size: .85em; diff --git a/resources/assets/sass/_text.scss b/resources/assets/sass/_text.scss index 719126526..4309acc21 100644 --- a/resources/assets/sass/_text.scss +++ b/resources/assets/sass/_text.scss @@ -359,6 +359,11 @@ li.checkbox-item, li.task-list-item { color: inherit; } +.break-text { + white-space: pre-wrap; + word-wrap: break-word; +} + /** * Grouping */ diff --git a/resources/views/books/grid-item.blade.php b/resources/views/books/grid-item.blade.php index bb1914b90..db99d0b54 100644 --- a/resources/views/books/grid-item.blade.php +++ b/resources/views/books/grid-item.blade.php @@ -5,7 +5,7 @@
{!! $book->searchSnippet !!}
@else diff --git a/resources/views/books/list-item.blade.php b/resources/views/books/list-item.blade.php index 92d0f9e2d..a77ceee94 100644 --- a/resources/views/books/list-item.blade.php +++ b/resources/views/books/list-item.blade.php @@ -1,10 +1,10 @@{!! $book->searchSnippet !!}
+{!! $book->searchSnippet !!}
@else -{{ $book->getExcerpt() }}
+{{ $book->getExcerpt() }}
@endif{!! $chapter->searchSnippet !!}
+{!! $chapter->searchSnippet !!}
@else -{{ $chapter->getExcerpt() }}
+{{ $chapter->getExcerpt() }}
@endif{!! nl2br(e($chapter->description)) !!}
+{!! nl2br(e($chapter->description)) !!}
@if(count($pages) > 0){!! $page->searchSnippet !!}
+{!! $page->searchSnippet !!}
@else -{{ $page->getExcerpt() }}
+{{ $page->getExcerpt() }}
@endif