Skip to content

The open alternative to Salesforce, designed for AI.

Fix broken documentation pages in mobile view (#8432)

Khudditeff77f85aeed4
diff --git a/packages/twenty-website/src/app/_components/docs/DocsContent.tsx b/packages/twenty-website/src/app/_components/docs/DocsContent.tsx
index 50710cf534a..f59186441c9 100644
--- a/packages/twenty-website/src/app/_components/docs/DocsContent.tsx
+++ b/packages/twenty-website/src/app/_components/docs/DocsContent.tsx
@@ -28,6 +28,7 @@ const StyledContainer = styled('div')`
const StyledWrapper = styled.div`
@media (max-width: 450px) {
+ width: 100%;
padding: ${Theme.spacing(10)} 32px ${Theme.spacing(20)};
}
diff --git a/packages/twenty-website/src/app/_components/ui/layout/articles/ArticleContent.tsx b/packages/twenty-website/src/app/_components/ui/layout/articles/ArticleContent.tsx
index c337be0bd1c..2c848c32a2e 100644
--- a/packages/twenty-website/src/app/_components/ui/layout/articles/ArticleContent.tsx
+++ b/packages/twenty-website/src/app/_components/ui/layout/articles/ArticleContent.tsx
@@ -105,6 +105,14 @@ const StyledContent = styled.div`
h4 {
font-size: 16px;
}
+ h1,
+ h2,
+ h3,
+ h4 {
+ code {
+ font-size: 16px;
+ }
+ }
}
ol {