Skip to content

Commit cba69cb

Browse files
authored
refactor: move horizontal scroll styles to respective components (#211)
1 parent aef2571 commit cba69cb

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

projects/ngx-datatable/src/lib/components/body/body.component.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
z-index: 10;
44
display: block;
55
overflow: hidden;
6+
7+
:host-context(ngx-datatable.scroll-horz) & {
8+
overflow-x: auto;
9+
-webkit-overflow-scrolling: touch; // Required for iOS optimization
10+
}
611
}
712

813
datatable-scroller {

projects/ngx-datatable/src/lib/components/datatable.component.scss

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,6 @@
3131
}
3232
}
3333

34-
/**
35-
* Horizontal Scrolling Adjustments
36-
*/
37-
&.scroll-horz {
38-
.datatable-body {
39-
overflow-x: auto;
40-
-webkit-overflow-scrolling: touch; // Required for iOS optimization
41-
}
42-
}
43-
4434
/**
4535
* Fixed row height adjustments
4636
*/

0 commit comments

Comments
 (0)