Skip to content

Commit 79c3557

Browse files
authored
Merge pull request #32042 from github/repo-sync
Repo sync
2 parents 8191bcd + 86769f6 commit 79c3557

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/automated-pipelines/components/AutomatedPage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ import { Breadcrumbs } from 'src/frame/components/page-header/Breadcrumbs'
1111

1212
type Props = {
1313
children: React.ReactNode
14+
fullWidth?: boolean
1415
}
1516

16-
export const AutomatedPage = ({ children }: Props) => {
17+
export const AutomatedPage = ({ children, fullWidth }: Props) => {
1718
const { title, intro, renderedPage, miniTocItems, product, permissions } =
1819
useAutomatedPageContext()
1920

@@ -23,6 +24,7 @@ export const AutomatedPage = ({ children }: Props) => {
2324

2425
<div className="container-xl px-3 px-md-6 my-4">
2526
<ArticleGridLayout
27+
fullWidth={fullWidth}
2628
topper={
2729
<>
2830
<div className="d-none d-xl-block my-3 mr-auto width-full">

src/frame/components/article/ArticleGridLayout.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ type Props = {
1212
children?: React.ReactNode
1313
className?: string
1414
supportPortalVaIframeProps?: SupportPortalVaIframeProps
15+
fullWidth?: boolean
1516
}
1617
export const ArticleGridLayout = ({
1718
intro,
@@ -20,9 +21,11 @@ export const ArticleGridLayout = ({
2021
children,
2122
className,
2223
supportPortalVaIframeProps,
24+
fullWidth,
2325
}: Props) => {
26+
const containerBoxStyles = fullWidth ? '' : styles.containerBox
2427
return (
25-
<Box className={cx(styles.containerBox, className)}>
28+
<Box className={cx(containerBoxStyles, className)}>
2629
{topper && <Box gridArea="topper">{topper}</Box>}
2730
{intro && (
2831
<Box id="article-intro" gridArea="intro" className="f4 pb-4">

src/graphql/pages/explorer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function GQLExplorer({
3030
return (
3131
<MainContext.Provider value={mainContext}>
3232
<AutomatedPageContext.Provider value={automatedPageContext}>
33-
<AutomatedPage>
33+
<AutomatedPage fullWidth={true}>
3434
<div>
3535
{/* eslint-disable-next-line jsx-a11y/iframe-has-title */}
3636
<iframe

0 commit comments

Comments
 (0)