File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { useLocation } from "@docusaurus/router" ;
2
2
import React , { useEffect } from "react" ;
3
3
4
- export function Carbon ( { sidebar = false } : { sidebar ?: boolean } = { } ) {
4
+ export function Carbon ( ) {
5
5
const ref = React . useRef < HTMLDivElement > ( null ! ) ;
6
6
const location = useLocation ( ) ;
7
7
if ( process . env . NODE_ENV === "development" ) {
@@ -85,9 +85,7 @@ export function Carbon({ sidebar = false }: { sidebar?: boolean } = {}) {
85
85
data-visual-test = "blackout"
86
86
id = "carbonads"
87
87
data-selector = "carbonads"
88
- className = { `bg-background flex flex-col carbonads argos-ignore ${
89
- sidebar ? "mt-6 mb-4 mx-0" : "m-4 space-y-2"
90
- } `}
88
+ className = "bg-background flex flex-col m-4 space-y-2 carbonads argos-ignore"
91
89
/>
92
90
</ >
93
91
) ;
Original file line number Diff line number Diff line change 1
1
import type { WrapperProps } from "@docusaurus/types" ;
2
+ import { Carbon } from "@site/src/components/carbon" ;
2
3
import DocPaginator from "@theme-original/DocPaginator" ;
3
4
import type DocPaginatorType from "@theme/DocPaginator" ;
4
5
import { type ReactNode } from "react" ;
@@ -9,6 +10,9 @@ export default function DocPaginatorWrapper(props: Props): ReactNode {
9
10
return (
10
11
< >
11
12
< DocPaginator { ...props } />
13
+ < div className = "max-w-80" >
14
+ < Carbon />
15
+ </ div >
12
16
</ >
13
17
) ;
14
18
}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export default function TOCItemsWrapper(props: Props): ReactNode {
10
10
return (
11
11
< >
12
12
< TOCItems { ...props } />
13
- < Carbon sidebar = { true } />
13
+ < Carbon />
14
14
</ >
15
15
) ;
16
16
}
You can’t perform that action at this time.
0 commit comments