Skip to content

Commit

Permalink
Update margin and render for lang/db switchers (#6196)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlagn authored Aug 14, 2024
1 parent f59a9a6 commit 8df8f44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -1097,6 +1097,7 @@ hr {
justify-content: space-between;
align-items: start;
flex-direction: column;
margin-bottom: 2rem;
}

@media (min-width: 996px) {
Expand Down
4 changes: 2 additions & 2 deletions src/theme/MDXComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ const TopBlock: React.FC<React.PropsWithChildren> = ({
const location = useLocation();
return (
<>
<section className="top-section">
{(langSwitcher || dbSwitcher) && <section className="top-section">
<TopSection
location={location}
langSwitcher={langSwitcher}
dbSwitcher={dbSwitcher}
slug={slug}
/>
</section>
</section>}
{children}
</>
);
Expand Down

0 comments on commit 8df8f44

Please sign in to comment.