From 9fd33cc14604bb5c9433dac39788da41d4beb259 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Mon, 27 Jan 2020 17:34:57 +0100 Subject: [PATCH] [docs] Avoid layout jump --- docs/src/modules/components/MarkdownDocs.js | 5 ++++- docs/src/modules/components/MarkdownElement.js | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/src/modules/components/MarkdownDocs.js b/docs/src/modules/components/MarkdownDocs.js index e5c00f8ad27c5e..dda8810b812c58 100644 --- a/docs/src/modules/components/MarkdownDocs.js +++ b/docs/src/modules/components/MarkdownDocs.js @@ -21,6 +21,9 @@ import { pageToTitleI18n } from 'docs/src/modules/utils/helpers'; import Link from 'docs/src/modules/components/Link'; const styles = theme => ({ + root: { + width: '100%', + }, container: { position: 'relative', }, @@ -132,7 +135,7 @@ function MarkdownDocs(props) { )}
({ '& code[class*="language-"]': { backgroundColor: '#272c34', color: '#fff', + // Avoid layout jump after hydration (style injected by prism) + lineHeight: 1.5, }, '& p code, & ul code, & pre code': { fontSize: 14,