Skip to content

Commit bcfa35a

Browse files
committed
fix
1 parent 52fb936 commit bcfa35a

File tree

5 files changed

+6
-9
lines changed

5 files changed

+6
-9
lines changed

templates/admin/emails/list.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
{{range .Emails}}
4848
<tr>
4949
<td><a href="{{AppSubUrl}}/{{.Name | PathEscape}}">{{.Name}}</a></td>
50-
<td><span class="text truncate">{{.FullName}}</span></td>
51-
<td><span class="text email">{{.Email}}</span></td>
50+
<td class="gt-ellipsis gt-max-width-12rem">{{.FullName}}</td>
51+
<td class="gt-ellipsis gt-max-width-12rem">{{.Email}}</td>
5252
<td>{{if .IsPrimary}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td>
5353
<td>
5454
{{if .CanChange}}

templates/admin/packages/list.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
{{end}}
5757
</td>
5858
<td>{{.Package.Type.Name}}</td>
59-
<td class="text truncate email">{{.Package.Name}}</td>
60-
<td><a href="{{.FullWebLink}}" class="text truncate email">{{.Version.Version}}</a></td>
59+
<td class="gt-ellipsis gt-max-width-12rem">{{.Package.Name}}</td>
60+
<td class="gt-ellipsis gt-max-width-12rem"><a href="{{.FullWebLink}}">{{.Version.Version}}</a></td>
6161
<td><a href="{{.Creator.HomeLink}}">{{.Creator.Name}}</a></td>
6262
<td>
6363
{{if .Repository}}

templates/admin/user/list.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
<tr>
8686
<td>{{.ID}}</td>
8787
<td><a href="{{.HomeLink}}">{{.Name}}</a></td>
88-
<td><span class="text truncate email">{{.Email}}</span></td>
88+
<td class="gt-ellipsis gt-max-width-12rem">{{.Email}}</td>
8989
<td>{{if .IsActive}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td>
9090
<td>{{if .IsAdmin}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td>
9191
<td>{{if .IsRestricted}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td>

web_src/css/admin.css

-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626
margin: 12px -1rem -1rem;
2727
}
2828

29-
.admin.user table.table .email {
30-
max-width: 200px;
31-
}
32-
3329
.admin dl.admin-dl-horizontal {
3430
padding: 1em;
3531
margin: 0;

web_src/css/helpers.css

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Gitea's private styles use `g-` prefix.
5252
text-overflow: ellipsis;
5353
}
5454

55+
.gt-max-width-12rem { max-width: 12rem !important; }
5556
.gt-max-width-24rem { max-width: 24rem !important; }
5657

5758
/* below class names match Tailwind CSS */

0 commit comments

Comments
 (0)