Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fix code wrapping in paragraphs

Terry Suttonaef47a1bc5ea
diff --git a/apps/docs/styles/main.scss b/apps/docs/styles/main.scss
index fecabd702dc..5c30b08ac0a 100644
--- a/apps/docs/styles/main.scss
+++ b/apps/docs/styles/main.scss
@@ -213,14 +213,27 @@ a:has(code) {
box-shadow: none !important;
}
+// fix code line wrapping
+// need to set this to happen from medium onwards, otherwise the would cause horizontal scroll
+article p code {
+ &::before,
+ &::after {
+ display: none !important;
+ }
+
+ @media screen and (min-width: 769px) {
+ white-space: pre !important;
+ }
+}
+
// fix firefox issue with li wrapping
.doc-content-container ul li div.relative {
display: inline-block;
}
-.doc-content-container ul li a {
- box-shadow: none !important;
-}
+// .doc-content-container ul li a {
+// box-shadow: none !important;
+// }
// fix ToC links when they have <code> inside
.toc-menu li a code {