File tree 3 files changed +24
-34
lines changed
3 files changed +24
-34
lines changed Original file line number Diff line number Diff line change 3
3
<h4 class="ui top attached header">
4
4
{{.locale.Tr "admin.notices.system_notice_list"}} ({{.locale.Tr "admin.total" .Total}})
5
5
</h4>
6
- <table id="notice-table" class="ui attached basic select selectable table unstackable">
6
+ <table class="ui attached basic select selectable table unstackable g-table-auto-ellipsis ">
7
7
<thead>
8
8
<tr>
9
9
<th></th>
10
10
<th>ID</th>
11
11
<th>{{.locale.Tr "admin.notices.type"}}</th>
12
12
<th>{{.locale.Tr "admin.notices.desc"}}</th>
13
- <th width="100px" >{{.locale.Tr "admin.users.created"}}</th>
13
+ <th>{{.locale.Tr "admin.users.created"}}</th>
14
14
<th>{{.locale.Tr "admin.notices.op"}}</th>
15
15
</tr>
16
16
</thead>
17
17
<tbody>
18
18
{{range .Notices}}
19
19
<tr>
20
- <td class="collapsing">
21
- <div class="ui fitted checkbox" data-id="{{.ID}}">
22
- <input type="checkbox">
23
- </div>
24
- </td>
20
+ <td><div class="ui checkbox gt-db" data-id="{{.ID}}"><input type="checkbox"></div></td>
25
21
<td>{{.ID}}</td>
26
22
<td>{{$.locale.Tr .TrStr}}</td>
27
- <td class="view-detail" ><span class="notice-description text ">{{.Description}}</span></td>
28
- <td>{{DateTime "short" .CreatedUnix}}</td>
29
- <td><a href="#">{{svg "octicon-note" 16 "view-detail" }}</a></td>
23
+ <td class="view-detail auto-ellipsis" style="width: 80%;" ><span class="notice-description">{{.Description}}</span></td>
24
+ <td nowrap >{{DateTime "short" .CreatedUnix}}</td>
25
+ <td class="view-detail" ><a href="#">{{svg "octicon-note" 16}}</a></td>
30
26
</tr>
31
27
{{end}}
32
28
</tbody>
Original file line number Diff line number Diff line change 60
60
white-space : pre-wrap;
61
61
word-wrap : break-word;
62
62
}
63
-
64
- @media (max-width : 767px ) {
65
- .admin # notice-table .notice-description {
66
- max-width : 80vw ;
67
- }
68
- }
69
-
70
- @media (min-width : 768px ) and (max-width : 991px ) {
71
- .admin # notice-table .notice-description {
72
- max-width : 360px ;
73
- }
74
- }
75
-
76
- @media (min-width : 992px ) and (max-width : 1200px ) {
77
- .admin # notice-table .notice-description {
78
- max-width : 510px ;
79
- }
80
- }
81
-
82
- @media (min-width : 1201px ) {
83
- .admin # notice-table .notice-description {
84
- max-width : 640px ;
85
- }
86
- }
Original file line number Diff line number Diff line change 2
2
Gitea's tailwind-style CSS helper classes have `gt-` prefix.
3
3
Gitea's private styles use `g-` prefix.
4
4
*/
5
+ .gt-db { display : block !important ; }
5
6
.gt-df { display : flex !important ; }
6
7
.gt-di { display : inline !important ; }
7
8
.gt-dif { display : inline-flex !important ; }
@@ -42,6 +43,23 @@ Gitea's private styles use `g-` prefix.
42
43
text-overflow : ellipsis !important ;
43
44
}
44
45
46
+
47
+ .g-table-auto-ellipsis td .auto-ellipsis {
48
+ position : relative;
49
+ }
50
+
51
+ .g-table-auto-ellipsis td .auto-ellipsis span {
52
+ position : absolute;
53
+ left : 0 ;
54
+ right : 0 ;
55
+ top : 0 ;
56
+ bottom : 0 ;
57
+ padding : inherit;
58
+ white-space : nowrap;
59
+ overflow : hidden;
60
+ text-overflow : ellipsis;
61
+ }
62
+
45
63
/* below class names match Tailwind CSS */
46
64
.gt-break-all { word-break : break-all !important ; }
47
65
.gt-content-center { align-content : center !important ; }
You can’t perform that action at this time.
0 commit comments