зеркало из https://github.com/golang/pkgsite.git
internal/frontend: limit synopsis on search page
The package synopsis for each package on the search page is limited to two lines. An ellipsis is displayed on the second line if the synopsis is longer. Fixes golang/go#44174 Change-Id: I8484a3defeea23285e47e6e15de3d2d4595aca26 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/290549 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
This commit is contained in:
Родитель
cfd1df27be
Коммит
c8d7045b9b
|
@ -690,8 +690,13 @@ pre {
|
|||
font-size: 1.5rem;
|
||||
}
|
||||
.SearchSnippet-synopsis {
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
color: var(--gray-3);
|
||||
display: -webkit-box;
|
||||
margin: 0 0 1rem;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.SearchSnippet-infoLabel {
|
||||
font-size: 0.875rem;
|
||||
|
|
Загрузка…
Ссылка в новой задаче