Skip to content

Commit

Permalink
Merge pull request #109 from daithihearn/horizonaltal-scroll
Browse files Browse the repository at this point in the history
Attempting to disable horizontal scroll on mobile
  • Loading branch information
daithihearn authored Jan 25, 2023
2 parents 1973039 + 497ff0f commit fd1f7e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const Layout = () => {
}, [isLoading, isAuthenticated])

return (
<div className="main_content">
<div className="main_content no-horizontal-scroll">
<span className="app" style={{ overflowX: "hidden" }}>
<div className="app_body">
<main className="main">
Expand Down
5 changes: 5 additions & 0 deletions src/scss/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ body {
}
}

.no-horizontal-scroll {
overflow-y: scroll;
overflow-x: hidden;
}

@media (min-width: 992px) {
.sidebar-fixed .sidebar {
position: fixed;
Expand Down

0 comments on commit fd1f7e5

Please sign in to comment.