1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Aligned book and shelf grid item views

Updated the titles so they are limited via CSS rather than by a
estimated hardcoded limit.

For #1469
This commit is contained in:
Dan Brown
2020-12-18 21:26:22 +00:00
parent 2b603b0488
commit 4b4642c8ea
10 changed files with 32 additions and 48 deletions

View File

@ -92,6 +92,6 @@
.bg-chapter {
background-color: var(--color-chapter);
}
.bg-shelf {
.bg-bookshelf {
background-color: var(--color-bookshelf);
}

View File

@ -352,12 +352,21 @@ li > ol, li > ul {
overflow-wrap: break-word;
}
.limit-text {
.text-limit-lines-1 {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.text-limit-lines-2 {
// -webkit use here is actually standardised cross-browser:
// https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-line-clamp
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
/**
* Grouping
*/