Skip to content

Commit

Permalink
Make Knowledgebase -> KB on media breakpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Blargian committed Feb 3, 2025
1 parent 9daad77 commit 0114aed
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/DocsCategoryDropdown/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function DocsCategoryDropdown({ dropdownCategory }) {
export const DocsCategoryDropdownLinkOnly = ({ title, link }) => {
return (
<div className={styles.docsNavDropdownContainer}>
<Link href={link} className={styles.docsNavDropdownToolbarTopLevelLink}>{title}</Link>
<Link href={link} className={styles.docsNavDropdownToolbarTopLevelLink}><span>{title}</span></Link>
</div>
);
}
Expand Down
13 changes: 13 additions & 0 deletions src/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1264,3 +1264,16 @@ input::-ms-input-placeholder { /* Microsoft Edge */
#437EEF;
}
}

/* Fixes for the long menu bar */
@media (max-width: 1103px) {

.docsNavDropdownContainer_cADf a[href="/docs/knowledgebase"]::before {
content: "KB";
display: inline-block;
}

.docsNavDropdownContainer_cADf a[href="/docs/knowledgebase"] span{
display: none;
}
}
4 changes: 2 additions & 2 deletions src/theme/Navbar/Content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function NavbarItems({ items }) {
// TODO: Move this to a config file
// Important note: The link is either the slug (iff one is set) or the file path.
const dropdownCategories = [{
title: 'Getting Started',
title: 'Get Started',
description: 'Learn how to use ClickHouse',
sidebar: 'docs',
link: '/docs',
Expand Down Expand Up @@ -122,7 +122,7 @@ const dropdownCategories = [{
]
},
{
title: 'Managing Data',
title: 'Manage Data',
description: 'How to manage data in ClickHouse',
sidebar: 'managingData',
link: '/docs/en/updating-data',
Expand Down

0 comments on commit 0114aed

Please sign in to comment.