Skip to content

Commit

Permalink
Edited Layout.tsx
Browse files Browse the repository at this point in the history
- Refactored "main-content" div from wrapping to inline so it would not overide the styling of the "content" div down river.
- This resolves weird footer issues in Inventory and My Settings.
  • Loading branch information
hawkishpolicy committed Jul 18, 2024
1 parent b2cdc01 commit c61bac9
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions frontend/src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,14 @@ export const Layout: React.FC<LayoutProps> = ({ children }) => {
{!pathname.includes('/readysetcyber') ? (
<>
<Header />
<div className="main-content" id="main-content" tabIndex={-1}>
{pathname === '/inventory' ? (
children
) : (
<div className={classes.content}>{children}</div>
)}
</div>

<div className="main-content" id="main-content" tabIndex={-1} />
{pathname === '/inventory' ? (
children
) : (
<div className={classes.content}>{children}</div>
)}

<CrossfeedFooter />
</>
) : (
Expand Down

0 comments on commit c61bac9

Please sign in to comment.