mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-02 09:17:10 +02:00
Backport #11714 * Properly truncate system notices As noted in #11658 the system notifications list will always suffix system notices with ... even when the notice is longer than 120 characters. Instead we should use .text.truncate to auto truncate and make the notices clickable to view their details. Signed-off-by: Andrew Thornton <art27@cantab.net> * As per @CirnoT make table cell clickable * ensure that pre wraps Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
co-authored by
techknowlogick
parent
a34826b19f
commit
7339018c5e
@@ -75,4 +75,21 @@
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
#notice-table {
|
||||
.notice-description {
|
||||
@media only screen and (max-width: 767px) {
|
||||
max-width: 80vw;
|
||||
}
|
||||
@media only screen and (max-width: 991px) and (min-width: 768px) {
|
||||
max-width: 360px;
|
||||
}
|
||||
@media only screen and (min-width: 992px) and (max-width: 1199.98px) {
|
||||
max-width: 510px;
|
||||
}
|
||||
@media only screen and (min-width: 1200px) {
|
||||
max-width: 640px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user