Add horizontal scrollbar to datagrid views (#4006)
* Add scrollbar * Add changeset * Add overflow-y: hidden to prevent scrolling to ghost row
This commit is contained in:
parent
be6adb28d5
commit
753b9f0c36
2 changed files with 6 additions and 5 deletions
5
.changeset/strange-flies-complain.md
Normal file
5
.changeset/strange-flies-complain.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"saleor-dashboard": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Add horizontal scrollbar on datagrid
|
|
@ -91,15 +91,11 @@ const useStyles = makeStyles<{ actionButtonPosition?: "left" | "right" }>(
|
||||||
datagrid: {
|
datagrid: {
|
||||||
"& .dvn-scroller": {
|
"& .dvn-scroller": {
|
||||||
overscrollBehaviorX: "none",
|
overscrollBehaviorX: "none",
|
||||||
scrollbarWidth: "none",
|
overflowY: "hidden",
|
||||||
},
|
|
||||||
"& .dvn-scroller::-webkit-scrollbar": {
|
|
||||||
display: "none",
|
|
||||||
},
|
},
|
||||||
borderRadius: 0,
|
borderRadius: 0,
|
||||||
boxSizing: "content-box",
|
boxSizing: "content-box",
|
||||||
width: "100%",
|
width: "100%",
|
||||||
paddingBottom: "1px",
|
|
||||||
},
|
},
|
||||||
root: {
|
root: {
|
||||||
position: "relative",
|
position: "relative",
|
||||||
|
|
Loading…
Reference in a new issue