Skip to content

Commit

Permalink
feat(ui): Use JetBrains Mono
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Feb 28, 2022
1 parent 374f00c commit 5a7045c
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 11 deletions.
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"dependencies": {
"@emotion/react": "11.6.0",
"@emotion/styled": "11.6.0",
"@fontsource/roboto": "4.5.1",
"@fontsource/jetbrains-mono": "4.5.3",
"@fontsource/roboto": "4.5.3",
"@mui/material": "5.2.0",
"@mui/icons-material": "5.2.0",
"@mui/lab": "5.0.0-alpha.48",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import "@fontsource/roboto/300.css";
import "@fontsource/roboto/400.css";
import "@fontsource/roboto/500.css";
import "@fontsource/roboto/700.css";
import "@fontsource/jetbrains-mono/200.css";

const queryClient = new QueryClient();

Expand Down
3 changes: 2 additions & 1 deletion frontend/src/components/LogViewer.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
}

.content {
font-family: monospace;
font-family: "JetBrains Mono",monospace;
font-weight: 200;
white-space: pre-wrap;
width: 100%;
overflow-wrap: anywhere;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/settings/connectivity/MQTTConnectivity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ const MQTTConnectivity = (): JSX.Element => {
<br/>
<Typography variant="subtitle2" sx={{mt: 1}} noWrap={false}>
The MQTT Topic structure will look like this:<br/>
<span style={{fontFamily: "monospace", overflowWrap: "anywhere"}}>
<span style={{fontFamily: "\"JetBrains Mono\",monospace", fontWeight: 200, overflowWrap: "anywhere"}}>
<span style={{
color: theme.palette.warning.main
}} ref={topicElement}>
Expand Down
28 changes: 20 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5a7045c

Please sign in to comment.