Skip to content

Commit eba86ee

Browse files
committed
Replace negative margin with calculated padding
1 parent b37d77a commit eba86ee

File tree

1 file changed

+4
-10
lines changed
  • packages/dataviews/src/dataviews-layouts/table

1 file changed

+4
-10
lines changed

packages/dataviews/src/dataviews-layouts/table/style.scss

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -161,19 +161,13 @@
161161
}
162162

163163
&:has(.dataviews-view-table-header-button):first-child {
164-
padding-left: $grid-unit-60;
165-
166-
.dataviews-view-table-header-button {
167-
margin-left: - #{$grid-unit-10};
168-
}
164+
// Table cell padding minus the header button padding.
165+
padding-left: $grid-unit-50;
169166
}
170167

171168
&:has(.dataviews-view-table-header-button):last-child {
172-
padding-right: $grid-unit-60;
173-
174-
.dataviews-view-table-header-button {
175-
margin-right: - #{$grid-unit-10};
176-
}
169+
// Table cell padding minus the header button padding.
170+
padding-right: $grid-unit-50;
177171
}
178172
}
179173
}

0 commit comments

Comments
 (0)