diff options
author | Giteabot <teabot@gitea.io> | 2023-08-15 21:34:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-15 13:34:08 +0000 |
commit | 6d60d4e554702815c1da484bc1fa2048b166e56d (patch) | |
tree | a2cd5c695cad9f1f07aa331dc5da1fb6e74b6281 /web_src | |
parent | 31208fe9a138ae29a114a28155e73b3e9b259ce3 (diff) | |
download | gitea-6d60d4e554702815c1da484bc1fa2048b166e56d.tar.gz gitea-6d60d4e554702815c1da484bc1fa2048b166e56d.zip |
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>
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/css/base.css | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/css/base.css b/web_src/css/base.css index 70baa9c9f7..556bee0d1a 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -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; |