Skip to content

Commit 833e990

Browse files
committed
center content in desktop view
For a better experience when viewing in a desktop browser
1 parent 3effdfd commit 833e990

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/App.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function App() {
2929
lat,
3030
long,
3131
}),
32-
[lat, long],
32+
[lat, long]
3333
);
3434

3535
function startLocationPrompter() {
@@ -58,7 +58,7 @@ function App() {
5858
}, []);
5959

6060
return (
61-
<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">
61+
<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">
6262
<LatLongContext.Provider value={contextLatLong}>
6363
<PermissionContext.Provider
6464
value={useMemo(() => ({ openStreetMapConsent, setOpenStreetMapConsent }), [openStreetMapConsent])}
@@ -73,7 +73,7 @@ function App() {
7373
listOfUnlocked,
7474
setListOfUnlocked,
7575
}),
76-
[selectedRoute, nextUnlockablePointId, listOfUnlocked],
76+
[selectedRoute, nextUnlockablePointId, listOfUnlocked]
7777
)}
7878
>
7979
<Navbar />
@@ -86,7 +86,7 @@ function App() {
8686
errorText,
8787
setErrorText,
8888
}),
89-
[error, errorText],
89+
[error, errorText]
9090
)}
9191
>
9292
<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-
<div className="fixed top-0 left-0 right-0 p-2 bg-zinc-100 dark:bg-zinc-800 z-40">
12+
<div className="md:max-w-4xl ml-auto mr-auto fixed top-0 left-0 right-0 px-3 bg-zinc-100 dark:bg-zinc-800 z-40">
1313
<div className="mb-6 mt-4 flex justify-between">
1414
{pathname === "/" && <img src={Logo} alt="" className="w-10 h-10" />}
1515
{pathname !== "/" && <BackButton />}

0 commit comments

Comments
 (0)