aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-27 07:08:05 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-27 07:08:05 -0700
commit32cb5f8d90df09fd45a54c96491bc3568f14690b (patch)
tree051737496874057755ef728b523a203a6b861b87 /modern/src/common
parentfa83492234ba77ae3599ce67217c25122d19f361 (diff)
downloadtrackermap-web-32cb5f8d90df09fd45a54c96491bc3568f14690b.tar.gz
trackermap-web-32cb5f8d90df09fd45a54c96491bc3568f14690b.tar.bz2
trackermap-web-32cb5f8d90df09fd45a54c96491bc3568f14690b.zip
Fix browser support
Diffstat (limited to 'modern/src/common')
-rw-r--r--modern/src/common/components/PageLayout.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/modern/src/common/components/PageLayout.js b/modern/src/common/components/PageLayout.js
index 43fd68ea..67ad4c01 100644
--- a/modern/src/common/components/PageLayout.js
+++ b/modern/src/common/components/PageLayout.js
@@ -42,6 +42,7 @@ const useStyles = makeStyles((theme) => ({
alignItems: 'stretch',
display: 'flex',
flexDirection: 'column',
+ overflowY: 'auto',
},
}));
@@ -53,7 +54,7 @@ const PageTitle = ({ breadcrumbs }) => {
if (desktop) {
return (
- <Typography variant="h6" noWrap>{t(breadcrumbs.at(0))}</Typography>
+ <Typography variant="h6" noWrap>{t(breadcrumbs[0])}</Typography>
);
}
return (
@@ -61,7 +62,7 @@ const PageTitle = ({ breadcrumbs }) => {
{breadcrumbs.slice(0, -1).map((breadcrumb) => (
<Typography variant="h6" color="inherit" key={breadcrumb}>{t(breadcrumb)}</Typography>
))}
- <Typography variant="h6" color="textPrimary">{t(breadcrumbs.at(-1))}</Typography>
+ <Typography variant="h6" color="textPrimary">{t(breadcrumbs[breadcrumbs.length - 1])}</Typography>
</Breadcrumbs>
);
};