Skip to content

Commit

Permalink
Merge pull request #190 from Cycling74/fde/next_fixes
Browse files Browse the repository at this point in the history
Minor Next JS tweaks for viewport meta tag and font optimization
  • Loading branch information
fde31 authored Dec 16, 2024
2 parents 1bb94ac + 50eb95a commit 84e99ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ function App({ Component, pageProps }: AppProps) {

return (
<>
<Head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
</Head>
<style jsx global>
{`
html {
Expand Down
2 changes: 0 additions & 2 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ class MyDocument extends Document {
return (
<Html>
<Head>
<link href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap" rel="stylesheet" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<ColorSchemeScript defaultColorScheme="auto" />
<style>{`
body {
Expand Down

0 comments on commit 84e99ce

Please sign in to comment.