Skip to content

Commit 8278fd4

Browse files
authored
Merge pull request #4168 from Blargian/increase_mobile_menu
Adjust mobile/tablet breakpoints
2 parents aceb649 + fbee777 commit 8278fd4

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

sidebars.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1715,7 +1715,7 @@ const sidebars = {
17151715
dropdownCategories: [
17161716
{
17171717
type: "category",
1718-
label: "Getting Started",
1718+
label: "Get Started",
17191719
description: "Learn how to use ClickHouse",
17201720
customProps: {
17211721
href: "/introduction-clickhouse",

src/components/MobileSideBarMenu/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const MobileSideBarMenu = ({sidebar, menu}) => {
2727
}, [currentMenuState]);
2828

2929
// Define the breakpoint where mobile menu should be hidden (laptop breakpoint)
30-
const LAPTOP_BREAKPOINT = 1330;
30+
const LAPTOP_BREAKPOINT = 1100;
3131

3232
// Initialize the previous location ref on first render and monitor location changes
3333
useEffect(() => {

src/css/breakpoints.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
$mobile-breakpoint: 996px;
2-
$tablet-breakpoint: 1024px;
3-
$laptop-breakpoint: 1330px;
1+
$mobile-breakpoint: 768px;
2+
$tablet-breakpoint: 900px;
3+
$laptop-breakpoint: 1100px;
44
$large-desktop-breakpoint: 1440px;
55

66
// If you change these breakpoints, make sure to update

src/theme/Navbar/Content/styles.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
}
5353
}
5454

55-
@media screen and (min-width: breakpoints.$mobile-breakpoint) {
55+
@media screen and (min-width: breakpoints.$laptop-breakpoint) {
5656
.navRight .mobileSearchBar {
5757
display: none;
5858
}

0 commit comments

Comments
 (0)