✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
improve font performance
AykutSaracf85fd10b8ec5
diff --git a/src/components/CustomNode/styles.tsx b/src/components/CustomNode/styles.tsxindex aa21f4b6..f2ffcfc4 100644--- a/src/components/CustomNode/styles.tsx+++ b/src/components/CustomNode/styles.tsx@@ -5,7 +5,8 @@ import styled, { DefaultTheme } from "styled-components";const robotoMono = Roboto_Mono({weight: "500",subsets: ["latin"],- display: "auto"+ display: "swap",+ fallback: ["Arial, Helvetica, sans-serif", "Tahoma, Verdana, sans-serif"]});function getTypeColor(value: string, theme: DefaultTheme) {diff --git a/src/pages/_app.tsx b/src/pages/_app.tsxindex e5525434..af86c535 100644--- a/src/pages/_app.tsx+++ b/src/pages/_app.tsx@@ -14,7 +14,8 @@ import { ThemeProvider } from "styled-components";const monaSans = localFont({src: "./Mona-Sans.woff2",variable: "--mona-sans",- display: "auto",+ display: "swap",+ fallback: ["Arial, Helvetica, sans-serif", "Tahoma, Verdana, sans-serif"]});if (process.env.NODE_ENV !== "development") {