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: {
|
||||
"& .dvn-scroller": {
|
||||
overscrollBehaviorX: "none",
|
||||
scrollbarWidth: "none",
|
||||
},
|
||||
"& .dvn-scroller::-webkit-scrollbar": {
|
||||
display: "none",
|
||||
overflowY: "hidden",
|
||||
},
|
||||
borderRadius: 0,
|
||||
boxSizing: "content-box",
|
||||
width: "100%",
|
||||
paddingBottom: "1px",
|
||||
},
|
||||
root: {
|
||||
position: "relative",
|
||||
|
|
Loading…
Reference in a new issue