forked from gitea/gitea
1
0
Fork 0

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

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
This commit is contained in:
silverwind 2023-08-15 15:23:51 +02:00 committed by GitHub
parent 79d74d208f
commit 27e4ac3e40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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