Skip to content

Commit 7aefe2b

Browse files
authored
Merge pull request #6292 from sagemathinc/next-normalize.css
next: install modern-normalize to fix #6285
2 parents 1f427dd + 558e295 commit 7aefe2b

File tree

3 files changed

+42
-19
lines changed

3 files changed

+42
-19
lines changed

src/packages/next/package-lock.json

Lines changed: 35 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/packages/next/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
"cookies": "^0.8.0",
8181
"express": "^4.17.1",
8282
"lru-cache": "^6.0.0",
83+
"modern-normalize": "^1.1.0",
8384
"next": "12.3.4",
8485
"node-fetch": "^3.2.10",
8586
"password-hash": "^1.2.2",
@@ -101,4 +102,4 @@
101102
"jest": "^29.3.1",
102103
"react-test-renderer": "^17.0.2"
103104
}
104-
}
105+
}

src/packages/next/pages/_app.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// Normalize CSS across browsers, fixes e.g. https://github.com/sagemathinc/cocalc/issues/6285
2+
// https://github.com/sindresorhus/modern-normalize (fork of the abandoned normalize.css)
3+
import "modern-normalize/modern-normalize.css";
4+
5+
// CoCalc 3rd party libraries
16
import "@cocalc/cdn/dist/codemirror/lib/codemirror.css";
27
import "@cocalc/cdn/dist/katex/katex.min.css";
38
import "@cocalc/frontend/editors/slate/elements/elements.css";

0 commit comments

Comments
 (0)