diff options
author | silverwind <me@silverwind.io> | 2023-08-15 15:23:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-15 13:23:51 +0000 |
commit | 27e4ac3e40265722abf9f99d519cb5985eebd1c7 (patch) | |
tree | 683afef4fafc8103c981b95787cceb007aee8a32 /web_src | |
parent | 79d74d208fe5cf9a5cdcb701cc48f115569a96d0 (diff) | |
download | gitea-27e4ac3e40265722abf9f99d519cb5985eebd1c7.tar.gz gitea-27e4ac3e40265722abf9f99d519cb5985eebd1c7.zip |
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
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 eca08fa1b9..bdc1234bc9 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -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; |