Skip to content

Commit 21b25da

Browse files
committed
fix position for carbon
1 parent 239bdd9 commit 21b25da

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

src/theme/EditThisPage/index.tsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/theme/Footer/index.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import type { WrapperProps } from '@docusaurus/types';
2+
import { Carbon } from '@site/src/components/carbon';
3+
import Footer from '@theme-original/Footer';
4+
import type FooterType from '@theme/Footer';
5+
import type { ReactNode } from 'react';
6+
7+
type Props = WrapperProps<typeof FooterType>;
8+
9+
export default function FooterWrapper(props: Props): ReactNode {
10+
return (
11+
<>
12+
<div className='max-w-80 mx-auto lg:absolute lg:bottom-0 lg:right-5 -z-10'>
13+
<Carbon />
14+
</div>
15+
<Footer {...props} />
16+
</>
17+
);
18+
}

src/theme/TOCItems/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export default function TOCItemsWrapper(props: Props): ReactNode {
1010
return (
1111
<>
1212
<TOCItems {...props} />
13-
<Carbon />
1413
</>
1514
);
1615
}

0 commit comments

Comments
 (0)