Skip to content

Commit 37226ac

Browse files
authored
Merge pull request #385 from homarr-labs/revert-366-copilot/fix-365
2 parents e902f17 + 58663c4 commit 37226ac

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/components/carbon.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useLocation } from "@docusaurus/router";
22
import React, { useEffect } from "react";
33

4-
export function Carbon({ sidebar = false }: { sidebar?: boolean } = {}) {
4+
export function Carbon() {
55
const ref = React.useRef<HTMLDivElement>(null!);
66
const location = useLocation();
77
if (process.env.NODE_ENV === "development") {
@@ -85,9 +85,7 @@ export function Carbon({ sidebar = false }: { sidebar?: boolean } = {}) {
8585
data-visual-test="blackout"
8686
id="carbonads"
8787
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"
9189
/>
9290
</>
9391
);

src/theme/DocPaginator/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { WrapperProps } from "@docusaurus/types";
2+
import { Carbon } from "@site/src/components/carbon";
23
import DocPaginator from "@theme-original/DocPaginator";
34
import type DocPaginatorType from "@theme/DocPaginator";
45
import { type ReactNode } from "react";
@@ -9,6 +10,9 @@ export default function DocPaginatorWrapper(props: Props): ReactNode {
910
return (
1011
<>
1112
<DocPaginator {...props} />
13+
<div className="max-w-80">
14+
<Carbon />
15+
</div>
1216
</>
1317
);
1418
}

src/theme/TOCItems/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default function TOCItemsWrapper(props: Props): ReactNode {
1010
return (
1111
<>
1212
<TOCItems {...props} />
13-
<Carbon sidebar={true} />
13+
<Carbon />
1414
</>
1515
);
1616
}

0 commit comments

Comments
 (0)