From a7e82735742096fabd97eb6faa0389d2dc49464d Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sat, 22 Jul 2023 18:54:48 +0800 Subject: 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. ![image](https://github.com/go-gitea/gitea/assets/2114189/0b0bd068-56fc-41cf-b4a3-ed45eb797401) ![image](https://github.com/go-gitea/gitea/assets/2114189/e7f843a3-5f46-4205-b383-4c7ef647ce83) ![image](https://github.com/go-gitea/gitea/assets/2114189/ce8d65e1-7e03-466e-a03b-9bd33815da91) --- web_src/css/admin.css | 4 ---- web_src/css/helpers.css | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'web_src/css') 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 */ -- cgit v1.2.3