Skip to content

Commit

Permalink
Include font as dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
poperigby committed Dec 22, 2024
1 parent d2954ad commit e450374
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gui/backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ once_cell = "1.20.1"
serde = { workspace = true, features = ["derive"] } # Implement (De)Serializer
serde_json = { workspace = true } # To avoid generate_context error.
snafu = { workspace = true } # Implement error types
tauri = { version = "2.0.1", features = ["devtools"] } # For GUI
tauri = { version = "2.0.1", features = ["devtools", "native-tls"] } # For GUI
tauri-plugin-dialog = "2.0.1" # https://github.com/tauri-apps/plugins-workspace
tauri-plugin-fs = "2.0.1"
tauri-plugin-shell = "2.0.1"
Expand Down
1 change: 1 addition & 0 deletions gui/frontend/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

html,
body {
font-family: 'Inter', sans-serif;
max-width: 100vw;
min-height: 100vh;
overflow-x: hidden;
Expand Down
4 changes: 2 additions & 2 deletions gui/frontend/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import dynamic from 'next/dynamic';

export { metadata } from '@/components/meta/meta';
import { inter } from '@/components/meta/font';
import Loading from '@/components/templates/Loading';
import '@fontsource/inter'

import type { ReactNode } from 'react';

Expand All @@ -19,7 +19,7 @@ type Props = Readonly<{
export default function RootLayout({ children }: Props) {
return (
<html lang='en'>
<body className={inter.className}>
<body>
<ClientLayout>{children}</ClientLayout>
</body>
</html>
Expand Down
3 changes: 0 additions & 3 deletions gui/frontend/src/components/meta/font.ts

This file was deleted.

7 changes: 7 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"dependencies": {
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@fontsource/inter": "^5.1.0",
"@monaco-editor/react": "^4.6.0",
"@mui/icons-material": "6.1.4",
"@mui/lab": "6.0.0-beta.12",
Expand Down

0 comments on commit e450374

Please sign in to comment.