aboutsummaryrefslogtreecommitdiffstats
path: root/packages/renderer/src/components/locationBar/LocationBar.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/renderer/src/components/locationBar/LocationBar.tsx')
-rw-r--r--packages/renderer/src/components/locationBar/LocationBar.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/renderer/src/components/locationBar/LocationBar.tsx b/packages/renderer/src/components/locationBar/LocationBar.tsx
index e1f470d..8b079f0 100644
--- a/packages/renderer/src/components/locationBar/LocationBar.tsx
+++ b/packages/renderer/src/components/locationBar/LocationBar.tsx
@@ -27,6 +27,8 @@ import { useStore } from '../StoreProvider';
27import LocationTextField from './LocationTextField'; 27import LocationTextField from './LocationTextField';
28import NavigationButtons from './NavigationButtons'; 28import NavigationButtons from './NavigationButtons';
29 29
30export const LOCATION_BAR_ID = 'Sophie-LocationBar';
31
30const LocationBarRoot = styled('header', { 32const LocationBarRoot = styled('header', {
31 name: 'LocationBar', 33 name: 'LocationBar',
32 slot: 'Root', 34 slot: 'Root',
@@ -34,6 +36,8 @@ const LocationBarRoot = styled('header', {
34 display: hidden ? 'none' : 'flex', 36 display: hidden ? 'none' : 'flex',
35 flexDirection: 'row', 37 flexDirection: 'row',
36 padding: theme.spacing(1), 38 padding: theme.spacing(1),
39 // Align the bottom border with the service switcher in the sidebar.
40 paddingBottom: `calc(${theme.spacing(1)} - 1px)`,
37 gap: theme.spacing(1), 41 gap: theme.spacing(1),
38 borderBottom: `1px solid ${theme.palette.divider}`, 42 borderBottom: `1px solid ${theme.palette.divider}`,
39})); 43}));
@@ -44,7 +48,7 @@ function LocationBar(): JSX.Element {
44 } = useStore(); 48 } = useStore();
45 49
46 return ( 50 return (
47 <LocationBarRoot id="locationBar" hidden={!showLocationBar}> 51 <LocationBarRoot id={LOCATION_BAR_ID} hidden={!showLocationBar}>
48 <NavigationButtons service={selectedService} /> 52 <NavigationButtons service={selectedService} />
49 <LocationTextField service={selectedService} /> 53 <LocationTextField service={selectedService} />
50 </LocationBarRoot> 54 </LocationBarRoot>