Skip to content

Commit 8a4b648

Browse files
authored
fix(example): keeps example content from overflowing content area (#4550)
1 parent 1109d62 commit 8a4b648

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/documentation-framework/templates/mdx.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ p.pf-v6-c-content--p.ws-p {
2323
.ws-back-to-top {
2424
z-index: var(--pf-t--global--z-index--2xl);
2525
}
26+
27+
.ws-example-page-wrapper {
28+
max-width: min(100%, 825px);
29+
}

packages/documentation-framework/templates/mdx.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const MDXChildTemplate = ({ Component, source, toc = [], index = 0, id }) => {
110110
const ChildComponent = () => (
111111
<div className={source !== 'landing-pages' ? 'pf-v6-l-flex' : ''}>
112112
{toc.length > 1 && <TableOfContents items={toc} />}
113-
<Stack hasGutter style={{ ...(source !== 'landing-pages' && { maxWidth: '825px' }) }}>
113+
<Stack hasGutter className={(source !== 'landing-pages' && 'ws-example-page-wrapper')}>
114114
{InlineAlerts}
115115
<Component />
116116
{functionDocumentation.length > 0 && (

0 commit comments

Comments
 (0)