Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hammer/resize #758

Merged
merged 2 commits into from
Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/dashboard/src/components/app-base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ import AppBar from './appbar';
import { AlertStore } from './alert-store';

const DefaultAlertDuration = 2000;
const defaultTheme = createTheme();
const defaultTheme = createTheme({
typography: {
fontSize: 16,
},
});

/**
* Contains various components that are essential to the app and provides contexts to control them.
Expand Down
25 changes: 24 additions & 1 deletion packages/dashboard/src/components/app.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
html, body, #root {
html,
body,
#root {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}

.leaflet-touch .leaflet-bar a {
width: 60px;
height: 60px;
line-height: 60px;
}

.leaflet-touch .leaflet-control-zoom-in,
.leaflet-touch .leaflet-control-zoom-out {
font-size: 44px;
}

.leaflet-touch .leaflet-control-layers-toggle {
width: 60px;
height: 60px;
}

.leaflet-control-layers label {
display: block;
font-size: 2.16em;
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function BeaconDataGridTable({ beacons }: BeaconDataGridTableProps): JSX.
component="p"
sx={{
fontWeight: 'bold',
fontSize: 14,
fontSize: 16,
}}
>
{params.row.online ? 'ONLINE' : 'OFFLINE'}
Expand Down Expand Up @@ -57,7 +57,7 @@ export function BeaconDataGridTable({ beacons }: BeaconDataGridTableProps): JSX.
component="p"
sx={{
fontWeight: 'bold',
fontSize: 14,
fontSize: 16,
}}
>
{params.row.activated ? 'ON' : 'OFF'}
Expand Down
4 changes: 2 additions & 2 deletions packages/react-components/lib/doors/door-table-datagrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function DoorDataGridTable({ doors }: DoorDataGridTableProps): JSX.Elemen
component="p"
sx={{
fontWeight: 'bold',
fontSize: 14,
fontSize: 16,
}}
>
{healthStatusToOpMode(params.row.opMode)}
Expand Down Expand Up @@ -101,7 +101,7 @@ export function DoorDataGridTable({ doors }: DoorDataGridTableProps): JSX.Elemen
component="p"
sx={{
fontWeight: 'bold',
fontSize: 14,
fontSize: 16,
}}
>
{params.row.doorState ? doorModeToString(params.row.doorState.current_mode.value) : -1}
Expand Down
4 changes: 2 additions & 2 deletions packages/react-components/lib/lifts/lift-table-datagrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function LiftDataGridTable({ lifts }: LiftDataGridTableProps): JSX.Elemen
component="p"
sx={{
fontWeight: 'bold',
fontSize: 14,
fontSize: 16,
}}
>
{healthStatusToOpMode(params.row.opMode)}
Expand Down Expand Up @@ -117,7 +117,7 @@ export function LiftDataGridTable({ lifts }: LiftDataGridTableProps): JSX.Elemen
sx={{
marginRight: params.row?.doorState === LiftStateModel.DOOR_OPEN ? 4 : 2,
fontWeight: 'bold',
fontSize: 14,
fontSize: 16,
display: 'inline-block',
}}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function RobotDataGridTable({ onRobotClick, robots }: RobotDataGridTableP
component="p"
sx={{
fontWeight: 'bold',
fontSize: 14,
fontSize: 16,
}}
>
{robotStatusToUpperCase(params.row.status)}
Expand Down
Loading