Skip to content

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

Small style updates

Terry Suttonb12fff6c5d23
diff --git a/apps/temp-docs/components/CodeBlock/CodeBlock.tsx b/apps/temp-docs/components/CodeBlock/CodeBlock.tsx
index 6c11934248e..6733b465b54 100644
--- a/apps/temp-docs/components/CodeBlock/CodeBlock.tsx
+++ b/apps/temp-docs/components/CodeBlock/CodeBlock.tsx
@@ -62,8 +62,8 @@ function CodeBlock(props: Props) {
<SyntaxHighlighter
language={lang}
style={monokaiTheme}
- className={`code-block rounded-lg border p-4 !my-2 !bg-scale-400 ${
- !showLineNumbers && 'pl-6'
+ className={`code-block rounded-lg border p-4 !my-2 !bg-scale-300 ${
+ !showLineNumbers ? 'pl-6' : ''
}`}
customStyle={{
fontSize: large ? 18 : 12,
@@ -91,7 +91,7 @@ function CodeBlock(props: Props) {
<code>{props.value || props.children}</code>
)}
{!props.hideCopy && (props.value || props.children) && props.className ? (
- <div className={`${isDarkMode ?? 'dark'} absolute right-2 top-2`}>
+ <div className={`${isDarkMode ? 'dark' : ''} absolute right-2 top-2`}>
<CopyToClipboard text={props.value || props.children}>
<Button
type="default"
diff --git a/apps/temp-docs/components/Navigation/SideBar.tsx b/apps/temp-docs/components/Navigation/SideBar.tsx
index 06f3bceaf19..87f15927701 100644
--- a/apps/temp-docs/components/Navigation/SideBar.tsx
+++ b/apps/temp-docs/components/Navigation/SideBar.tsx
@@ -42,7 +42,7 @@ const SideBar = ({ menuItems = [] }: { menuItems: any }) => {
return (
<div
- className="dark:bg-scale-200 dark:border-scale-400 sidebar-width sticky top-8
+ className="dark:bg-scale-200 dark:border-scale-400 sidebar-width sticky top-10
h-screen overflow-y-scroll border-r py-8 px-6 sidebar-menu-container"
>
{isInReferencePages && (
diff --git a/apps/temp-docs/styles/main.scss b/apps/temp-docs/styles/main.scss
index 971a2e96b18..dfbf205139d 100644
--- a/apps/temp-docs/styles/main.scss
+++ b/apps/temp-docs/styles/main.scss
@@ -181,3 +181,16 @@ pre[class*='language-'] {
.admonition-content > p {
@apply m-0;
}
+
+// format <code> inside <p>
+p code {
+ word-break: keep-all !important;
+ padding: 0.1rem 0.25rem !important;
+
+ &:before {
+ display: none;
+ }
+ &::after {
+ display: none;
+ }
+}