diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-07-22 18:54:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-22 10:54:48 +0000 |
commit | a7e82735742096fabd97eb6faa0389d2dc49464d (patch) | |
tree | 66772b53ea94918f55ebbf7a66a745d8013805c6 /web_src/css | |
parent | acc74c2fc6e67ca72293da1540226c3931700566 (diff) | |
download | gitea-a7e82735742096fabd97eb6faa0389d2dc49464d.tar.gz gitea-a7e82735742096fabd97eb6faa0389d2dc49464d.zip |
Fix the truncate and alignment problem for some admin tables (#26042)
Some "text truncate email" code were just copied&pasted, they are not
suitable for most admin tables.
For the table layouts, some "max-width" helpers could be very helpful.
At least, we can get rid of the confusing "email" CSS class.



Diffstat (limited to 'web_src/css')
-rw-r--r-- | web_src/css/admin.css | 4 | ||||
-rw-r--r-- | web_src/css/helpers.css | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/web_src/css/admin.css b/web_src/css/admin.css index 8c9d1e201c..ec3cfbf22a 100644 --- a/web_src/css/admin.css +++ b/web_src/css/admin.css @@ -26,10 +26,6 @@ margin: 12px -1rem -1rem; } -.admin.user table.table .email { - max-width: 200px; -} - .admin dl.admin-dl-horizontal { padding: 1em; margin: 0; diff --git a/web_src/css/helpers.css b/web_src/css/helpers.css index 73f2ebe79b..8a6c2c6539 100644 --- a/web_src/css/helpers.css +++ b/web_src/css/helpers.css @@ -52,6 +52,7 @@ Gitea's private styles use `g-` prefix. text-overflow: ellipsis; } +.gt-max-width-12rem { max-width: 12rem !important; } .gt-max-width-24rem { max-width: 24rem !important; } /* below class names match Tailwind CSS */ |