Skip to content

Commit b29cc1f

Browse files
committed
Fixed icons and alignment on non responsive datatable
1 parent 4539c78 commit b29cc1f

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

src/public/packages/backpack/base/css/blue-bundle.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/public/packages/backpack/base/css/bundle.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/resources/assets/scss/customs/_list.scss

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
margin-right: 0.4rem;
2525
}
2626

27-
#crudTable {
27+
#crudTable,
28+
table.dataTable {
2829
margin-top: 0 !important;
2930

3031
&.dtr-inline.collapsed > tbody > tr > .dtr-control:before {
@@ -156,25 +157,28 @@
156157
padding-bottom: 1rem !important;
157158
padding-left: 0.6rem !important;
158159
}
159-
160-
&[data-responsive-table="0"] {
161-
tr th:first-child {
162-
padding-top: 0 !important;
163-
padding-bottom: 0 !important;
164-
}
165-
}
166160

167161
&[data-has-bulk-actions="0"] .details-control,
168162
&[data-has-bulk-actions="0"][data-has-details-row="0"] .dtr-control:before {
169163
margin-right: 0.4rem !important;
170164
}
171165

166+
&[data-responsive-table="0"] thead tr th,
172167
tr td.dataTables_empty,
173168
tr.dt-hasChild + tr td {
174169
display: table-cell;
175170
}
176171
}
177172

173+
.dataTables_scrollBody {
174+
#crudTable[data-responsive-table="0"] {
175+
tr th:first-child {
176+
padding-top: 0 !important;
177+
padding-bottom: 0 !important;
178+
}
179+
}
180+
}
181+
178182
.dt-buttons .dt-button-collection,
179183
tr td .btn-group .dropdown-menu {
180184
max-height: 340px;

0 commit comments

Comments
 (0)