@@ -2,6 +2,7 @@ import React, { useEffect, useMemo } from "react";
22import moment from "moment" ;
33import { useDispatch , useSelector } from "react-redux" ;
44import { Alert } from "react-bootstrap" ;
5+ import "./App.css" ;
56
67import TopNav from "@/features/layout/TopNav" ;
78import Sidebar from "@/features/layout/Sidebar" ;
@@ -178,6 +179,7 @@ const App = () => {
178179 dispatch ( searchActions . setSuggestionsOpen ( false ) ) ;
179180 dispatch ( uiActions . setNavbarExpanded ( false ) ) ;
180181 } ;
182+ const mapboxAlertOffsetClass = dataSource === "fallback" ? "fishfry-error--offset-116" : "fishfry-error--offset-64" ;
181183
182184 return (
183185 < >
@@ -210,7 +212,7 @@ const App = () => {
210212 } }
211213 />
212214
213- < div id = "container" style = { { marginTop : "10px" , paddingBottom : "10px" } } >
215+ < div id = "container" className = "app-container" >
214216 < Sidebar
215217 visible = { ui . sidebarVisible }
216218 features = { visibleFeatures }
@@ -299,13 +301,13 @@ const App = () => {
299301 ) : null }
300302
301303 { ! error && dataSource === "fallback" ? (
302- < Alert className = "fishfry-error" variant = "info" style = { { bottom : "64px" } } >
304+ < Alert className = "fishfry-error fishfry-error--offset-64 " variant = "info" >
303305 Primary API is unreachable; showing fallback data.
304306 </ Alert >
305307 ) : null }
306308
307309 { ! hasMapboxToken && searchQuery . trim ( ) . length >= 3 ? (
308- < Alert className = " fishfry-error" variant = "info" style = { { bottom : dataSource === "fallback" ? "116px" : "64px" } } >
310+ < Alert className = { ` fishfry-error ${ mapboxAlertOffsetClass } ` } variant = "info" >
309311 Mapbox geocoding is disabled because < code > VITE_MAPBOX_TOKEN</ code > is not set.
310312 </ Alert >
311313 ) : null }
0 commit comments