mirror of
https://github.com/lingble/twenty.git
synced 2025-10-30 20:27:55 +00:00
Fix broken documentation pages in mobile view (#8432)
Fixes: #8396 1. Summary The document content container is missing `width` and has only `padding` CSS property, which means the width can overflow its parent based on the content. The code block inside headings was missing `fontSize` for mobile view, it was set for only desktop views. 2. Solution I set `width` for document content container and `fontSize` for code blocks in headings for mobile view. 3. Screenshots  
This commit is contained in:
@@ -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)};
|
||||
}
|
||||
|
||||
|
||||
@@ -105,6 +105,14 @@ const StyledContent = styled.div`
|
||||
h4 {
|
||||
font-size: 16px;
|
||||
}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4 {
|
||||
code {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ol {
|
||||
|
||||
Reference in New Issue
Block a user