Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit 48671a4

Browse files
committed
fixed progressbar
1 parent a7cc746 commit 48671a4

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

src/pages/LandingPage/components/HeaderView/styles.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@
7474
}
7575

7676
@media (max-width: 768px) {
77+
.Container {
78+
padding: 8rem 1rem;
79+
}
80+
7781
.HeaderTitle {
7882
font-size: var(--ifm-font-size-40);
7983
}

src/pages/LandingPage/components/StraightforwardView/sections.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ MY_COLLECTION.collect({id: 1, name: "Jeff"})
4343
// Create set of States
4444
const App = new Agile();
4545
const MY_COLLECTION = App.createState();
46-
MY_COLLECTION.collect({id: 1, name: "Jeff"})
46+
MY_COLLECTION.collect({id: 1, name: "Jeff"});
4747
`,
4848
title: 'Create set of States',
4949
description: 'Create a dynamic and reactive set of States.',

src/theme/Navbar/index.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@
77
* This source code is licensed under the MIT license found in the
88
* LICENSE file in the root directory of this source tree.
99
*/
10-
import React, {useCallback, useState, useEffect} from 'react';
10+
import React, { useCallback, useState, useEffect } from 'react';
1111
import clsx from 'clsx';
1212
import SearchBar from '@theme/SearchBar';
1313
import Toggle from '@theme/Toggle';
1414
import useThemeContext from '@theme/hooks/useThemeContext';
1515
import useLockBodyScroll from '@theme/hooks/useLockBodyScroll';
16-
import useWindowSize, {windowSizes} from '@theme/hooks/useWindowSize';
16+
import useWindowSize, { windowSizes } from '@theme/hooks/useWindowSize';
1717
import NavbarItem from '@theme/NavbarItem';
1818
import Logo from '@theme/Logo';
1919
import styles from './styles.module.css';
2020
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
2121
import IconMenu from '@theme/IconMenu';
22-
import {useHistory} from 'react-router-dom';
22+
import { useHistory } from 'react-router-dom';
2323
import core from '../../core';
24-
import {splitNavItemsByPosition} from './controller';
24+
import { splitNavItemsByPosition } from './controller';
2525
import QuickSocialLinksView from './components/QuickSocialLinksView';
26-
import {useScroll} from '../../hooks/useScroll';
26+
import { useScroll } from '../../hooks/useScroll';
2727

2828
const Navbar = (): JSX.Element => {
2929
const { siteConfig } = useDocusaurusContext();
@@ -104,6 +104,9 @@ const Navbar = (): JSX.Element => {
104104
isSearchBarExpanded={isSearchBarExpanded}
105105
/>
106106
</div>
107+
<div className={styles.ProgressbarContainer}>
108+
<div className={styles.Progressbar} id={scrollbarId} />
109+
</div>
107110
</div>
108111

109112
{/* Donut */}
@@ -142,9 +145,6 @@ const Navbar = (): JSX.Element => {
142145
</div>
143146
</div>
144147
</div>
145-
<div className={styles.ProgressbarContainer}>
146-
<div className={styles.Progressbar} id={scrollbarId} />
147-
</div>
148148
</nav>
149149
);
150150
};

0 commit comments

Comments
 (0)