Skip to content

Commit 02dbe69

Browse files
committed
center content in desktop view
For a better experience when viewing in a desktop browser
1 parent e27d630 commit 02dbe69

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/App.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function App() {
3535
lat,
3636
long,
3737
}),
38-
[lat, long],
38+
[lat, long]
3939
);
4040

4141
function handlePermissionInfoBanner() {
@@ -49,7 +49,7 @@ function App() {
4949
<Link className="underline" to="/navigation-help">
5050
Hjælp til navigation
5151
</Link>
52-
</span>,
52+
</span>
5353
);
5454
}
5555
});
@@ -93,7 +93,7 @@ function App() {
9393
}, [openStreetMapConsent]);
9494

9595
return (
96-
<div className="App flex flex-col h-full pt-24 min-h-screen dark:text-white w-screen pl-3 pr-3 pb-3 text-zinc-800 bg-zinc-100 dark:bg-zinc-800 overflow-hidden">
96+
<div className="App md:max-w-4xl ml-auto mr-auto flex flex-col h-full pt-24 min-h-screen dark:text-white w-screen pl-3 pr-3 pb-3 text-zinc-800 bg-zinc-100 dark:bg-zinc-800 overflow-hidden">
9797
<LatLongContext.Provider value={contextLatLong}>
9898
<PermissionContext.Provider
9999
value={useMemo(() => ({ openStreetMapConsent, setOpenStreetMapConsent }), [openStreetMapConsent])}
@@ -108,7 +108,7 @@ function App() {
108108
listOfUnlocked,
109109
setListOfUnlocked,
110110
}),
111-
[selectedRoute, nextUnlockablePointId, listOfUnlocked],
111+
[selectedRoute, nextUnlockablePointId, listOfUnlocked]
112112
)}
113113
>
114114
<SkipLinks />
@@ -129,7 +129,7 @@ function App() {
129129
infoText,
130130
setInfoText,
131131
}),
132-
[error, errorText, info, infoText],
132+
[error, errorText, info, infoText]
133133
)}
134134
>
135135
<Switch>

src/components/Navbar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const Navbar = () => {
99
const { pathname } = useLocation();
1010

1111
return (
12-
<nav className="fixed top-0 left-0 right-0 p-3 bg-zinc-100 dark:bg-zinc-800 z-50">
12+
<nav className="md:max-w-4xl ml-auto mr-auto fixed top-0 left-0 right-0 p-3 bg-zinc-100 dark:bg-zinc-800 z-50">
1313
<div className="mb-6 mt-4 flex justify-between">
1414
{pathname === "/" && (
1515
<Link to="/">

0 commit comments

Comments
 (0)