Skip to content

Commit 5848ac9

Browse files
author
cg33
committed
feature: update table operation column style
1 parent 1149753 commit 5848ac9

File tree

7 files changed

+35
-10
lines changed

7 files changed

+35
-10
lines changed

adminlte/separation/public.zip

35 Bytes
Binary file not shown.

adminlte/separation/public/pages/components/table.tmpl

+7-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@
4545
{{end}}
4646
{{end}}
4747
{{if eq .NoAction false}}
48-
<th style="text-align: center;">{{lang "operation"}}</th>
48+
{{if not .ActionFold}}
49+
<th style="text-align: center;">{{lang "operation"}}</th>
50+
{{else}}
51+
<th style="text-align: center; width: 100px;">{{lang "operation"}}</th>
52+
{{end}}
4953
{{end}}
5054
</tr>
5155
{{end}}
@@ -560,7 +564,7 @@
560564
right: 0;
561565
z-index: 1;
562566
}
563-
table tbody td:last-child {
567+
table tbody th:last-child, table tbody td:last-child {
564568
background-color: white;
565569
}
566570
table.sticky_table .last_th_td_ele:before, table.sticky_table .last_th_td_ele:before {
@@ -570,6 +574,7 @@
570574
position: absolute;
571575
top: 0;
572576
width: 10px;
577+
left: -10px;
573578
bottom: -1px;
574579
overflow-x: hidden;
575580
overflow-y: hidden;

adminlte/template.go

+7-2
Original file line numberDiff line numberDiff line change
@@ -1675,7 +1675,11 @@ var TemplateList = map[string]string{"403": `<div class="missing-content">
16751675
{{end}}
16761676
{{end}}
16771677
{{if eq .NoAction false}}
1678-
<th style="text-align: center;">{{lang "operation"}}</th>
1678+
{{if not .ActionFold}}
1679+
<th style="text-align: center;">{{lang "operation"}}</th>
1680+
{{else}}
1681+
<th style="text-align: center; width: 100px;">{{lang "operation"}}</th>
1682+
{{end}}
16791683
{{end}}
16801684
</tr>
16811685
{{end}}
@@ -2190,7 +2194,7 @@ var TemplateList = map[string]string{"403": `<div class="missing-content">
21902194
right: 0;
21912195
z-index: 1;
21922196
}
2193-
table tbody td:last-child {
2197+
table tbody th:last-child, table tbody td:last-child {
21942198
background-color: white;
21952199
}
21962200
table.sticky_table .last_th_td_ele:before, table.sticky_table .last_th_td_ele:before {
@@ -2200,6 +2204,7 @@ var TemplateList = map[string]string{"403": `<div class="missing-content">
22002204
position: absolute;
22012205
top: 0;
22022206
width: 10px;
2207+
left: -10px;
22032208
bottom: -1px;
22042209
overflow-x: hidden;
22052210
overflow-y: hidden;

common/pages/components/table.tmpl

+7-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@
4545
{{end}}
4646
{{end}}
4747
{{if eq .NoAction false}}
48-
<th style="text-align: center;">{{lang "operation"}}</th>
48+
{{if not .ActionFold}}
49+
<th style="text-align: center;">{{lang "operation"}}</th>
50+
{{else}}
51+
<th style="text-align: center; width: 100px;">{{lang "operation"}}</th>
52+
{{end}}
4953
{{end}}
5054
</tr>
5155
{{end}}
@@ -560,7 +564,7 @@
560564
right: 0;
561565
z-index: 1;
562566
}
563-
table tbody td:last-child {
567+
table tbody th:last-child, table tbody td:last-child {
564568
background-color: white;
565569
}
566570
table.sticky_table .last_th_td_ele:before, table.sticky_table .last_th_td_ele:before {
@@ -570,6 +574,7 @@
570574
position: absolute;
571575
top: 0;
572576
width: 10px;
577+
left: -10px;
573578
bottom: -1px;
574579
overflow-x: hidden;
575580
overflow-y: hidden;

sword/separation/public.zip

35 Bytes
Binary file not shown.

sword/separation/public/pages/components/table.tmpl

+7-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@
4545
{{end}}
4646
{{end}}
4747
{{if eq .NoAction false}}
48-
<th style="text-align: center;">{{lang "operation"}}</th>
48+
{{if not .ActionFold}}
49+
<th style="text-align: center;">{{lang "operation"}}</th>
50+
{{else}}
51+
<th style="text-align: center; width: 100px;">{{lang "operation"}}</th>
52+
{{end}}
4953
{{end}}
5054
</tr>
5155
{{end}}
@@ -560,7 +564,7 @@
560564
right: 0;
561565
z-index: 1;
562566
}
563-
table tbody td:last-child {
567+
table tbody th:last-child, table tbody td:last-child {
564568
background-color: white;
565569
}
566570
table.sticky_table .last_th_td_ele:before, table.sticky_table .last_th_td_ele:before {
@@ -570,6 +574,7 @@
570574
position: absolute;
571575
top: 0;
572576
width: 10px;
577+
left: -10px;
573578
bottom: -1px;
574579
overflow-x: hidden;
575580
overflow-y: hidden;

sword/template.go

+7-2
Original file line numberDiff line numberDiff line change
@@ -1671,7 +1671,11 @@ var TemplateList = map[string]string{"403": `<div class="missing-content">
16711671
{{end}}
16721672
{{end}}
16731673
{{if eq .NoAction false}}
1674-
<th style="text-align: center;">{{lang "operation"}}</th>
1674+
{{if not .ActionFold}}
1675+
<th style="text-align: center;">{{lang "operation"}}</th>
1676+
{{else}}
1677+
<th style="text-align: center; width: 100px;">{{lang "operation"}}</th>
1678+
{{end}}
16751679
{{end}}
16761680
</tr>
16771681
{{end}}
@@ -2186,7 +2190,7 @@ var TemplateList = map[string]string{"403": `<div class="missing-content">
21862190
right: 0;
21872191
z-index: 1;
21882192
}
2189-
table tbody td:last-child {
2193+
table tbody th:last-child, table tbody td:last-child {
21902194
background-color: white;
21912195
}
21922196
table.sticky_table .last_th_td_ele:before, table.sticky_table .last_th_td_ele:before {
@@ -2196,6 +2200,7 @@ var TemplateList = map[string]string{"403": `<div class="missing-content">
21962200
position: absolute;
21972201
top: 0;
21982202
width: 10px;
2203+
left: -10px;
21992204
bottom: -1px;
22002205
overflow-x: hidden;
22012206
overflow-y: hidden;

0 commit comments

Comments
 (0)