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:
Michał Droń 2023-07-27 13:27:47 +02:00 committed by GitHub
parent be6adb28d5
commit 753b9f0c36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View file

@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---
Add horizontal scrollbar on datagrid

View file

@ -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",