Skip to content

Commit e87f0e0

Browse files
committed
fix: apply global styles to body to prevent scroll rubber-band
1 parent 37e29b7 commit e87f0e0

File tree

6 files changed

+12
-4
lines changed

6 files changed

+12
-4
lines changed
-1.01 MB
Binary file not shown.

public/img/test1.png

27 KB
Loading

public/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
<!-- Google tag (gtag.js) -->
117117
<script
118118
async
119-
src="https://www.googletagmanager.com/gtag/js?id=G-J4WYV02Q5B"
119+
src="https://www.googletagmanager.com/gtag/js?id=G-F0BKEF4Y2R"
120120
></script>
121121
<script>
122122
window.dataLayer = window.dataLayer || [];
@@ -125,7 +125,7 @@
125125
}
126126
gtag("js", new Date());
127127

128-
gtag("config", "G-J4WYV02Q5B");
128+
gtag("config", "G-F0BKEF4Y2R");
129129
</script>
130130
</body>
131131
</html>

src/App.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { GlobalStyles } from "@mui/material";
12
import { ThemeProvider } from "@mui/material/styles";
23
import Routes from "components/Routes";
34
import theme from "design/theme";
@@ -6,6 +7,13 @@ import { BrowserRouter } from "react-router-dom";
67
const App = () => {
78
return (
89
<ThemeProvider theme={theme}>
10+
<GlobalStyles
11+
styles={{
12+
body: {
13+
overscrollBehavior: "none",
14+
},
15+
}}
16+
/>
917
<BrowserRouter basename={process.env.PUBLIC_URL}>
1018
<Routes />
1119
</BrowserRouter>

src/pages/DatabasePage.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const DatabasePage: React.FC = () => {
4242

4343
return (
4444
<Container maxWidth="lg">
45-
<Box sx={{ padding: { xs: 2, md: 4 } }}>
45+
<Box sx={{ padding: { xs: 2, md: 4 }, marginTop: { xs: 4 } }}>
4646
<Typography variant="h1" gutterBottom sx={{ color: Colors.green }}>
4747
Databases
4848
</Typography>
@@ -88,7 +88,6 @@ const DatabasePage: React.FC = () => {
8888
boxShadow: 3,
8989
},
9090
}}
91-
// onClick={() => navigate(`/databases/${db.id}`)}
9291
onClick={() => navigate(`${RoutesEnum.DATABASES}/${db.id}`)}
9392
>
9493
<Typography variant="h6" component="span">

src/pages/SearchPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ const SearchPage: React.FC = () => {
7777
);
7878
const parsed = JSON.parse(decoded);
7979
setFormData(parsed);
80+
setAppliedFilters(parsed);
8081
const requestData = { ...parsed, skip: 0, limit: 50 };
8182
setSkip(0);
8283
setHasSearched(true);

0 commit comments

Comments
 (0)