Skip to content

Commit

Permalink
Increase font size on title bar and change button size
Browse files Browse the repository at this point in the history
Signed-off-by: angatupyry <fierrofenix@gmail.com>
  • Loading branch information
Angatupyry committed Aug 28, 2023
1 parent 1fb4560 commit 9ee547e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions packages/dashboard/src/components/appbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ import { RmfAppContext } from './rmf-app';
import { parseTasksFile } from './tasks/utils';
import { Subscription } from 'rxjs';
import { formatDistance } from 'date-fns';
import { styled } from '@mui/system';

const StyledAppBarTab = styled(AppBarTab)(({ theme }) => ({
fontSize: theme.spacing(2.25), // spacing = 8,
}));

export type TabValue = 'infrastructure' | 'robots' | 'tasks';

Expand Down Expand Up @@ -390,19 +395,19 @@ export const AppBar = React.memo(({ extraToolbarItems }: AppBarProps): React.Rea
<HeaderBar>
<LogoButton src={brandingIconPath} alt="logo" sx={{ width: logoSize }} />
<NavigationBar value={tabValue}>
<AppBarTab
<StyledAppBarTab
label="Map"
value="infrastructure"
aria-label="Map"
onTabClick={() => navigate(DashboardRoute)}
/>
<AppBarTab
<StyledAppBarTab
label="System Overview"
value="robots"
aria-label="System Overview"
onTabClick={() => navigate(RobotsRoute)}
/>
<AppBarTab
<StyledAppBarTab
label="Tasks"
value="tasks"
aria-label="Tasks"
Expand All @@ -415,7 +420,7 @@ export const AppBar = React.memo(({ extraToolbarItems }: AppBarProps): React.Rea
aria-label="new task"
color="secondary"
variant="contained"
size="small"
size="medium"
onClick={() => setOpenCreateTaskForm(true)}
>
<AddOutlined />
Expand Down

0 comments on commit 9ee547e

Please sign in to comment.