diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-04-15 03:43:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-14 21:43:30 +0200 |
commit | b84baf21fa19521e1ab303a60918c74f85fcad1c (patch) | |
tree | 8fc5c1fc8b92782f12a6f3ecbd6d4c104cc7697f /web_src/css/modules | |
parent | 99463532820d7a88cdea88e66e0606b996cc9fc7 (diff) | |
download | gitea-b84baf21fa19521e1ab303a60918c74f85fcad1c.tar.gz gitea-b84baf21fa19521e1ab303a60918c74f85fcad1c.zip |
Improve flex ellipsis (#30479)
![image](https://github.com/go-gitea/gitea/assets/2114189/857794d8-2170-42be-a5bf-47ebacbafebd)
---------
Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'web_src/css/modules')
-rw-r--r-- | web_src/css/modules/label.css | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web_src/css/modules/label.css b/web_src/css/modules/label.css index 32e772ea5b..696080b667 100644 --- a/web_src/css/modules/label.css +++ b/web_src/css/modules/label.css @@ -5,6 +5,8 @@ display: inline-flex; align-items: center; gap: .25rem; + min-width: 0; + max-width: 100%; /* since we are using "flex" to align label contents, we also need to limit the x-axis, a label shouldn't be wider than 100% */ vertical-align: middle; line-height: 1; background: var(--color-label-bg); |