Use `hidden` over `clip` for text truncation (#26520) (#26522)

Backport #26520 by @silverwind

Avoid browser bugs:

- Firefox not cutting off -
https://github.com/go-gitea/gitea/pull/26354#issuecomment-1678456052
- Safari not showing ellipsis -
https://github.com/go-gitea/gitea/pull/26354#issuecomment-1678812801

Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
Giteabot 2023-08-15 21:34:08 +08:00 committed by GitHub
parent 31208fe9a1
commit 6d60d4e554
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1301,7 +1301,7 @@ img.ui.avatar,
}
.ui .text.truncate {
overflow-x: clip;
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: inline-block;