Skip to content

Adjust mobile/tablet breakpoints #4168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,7 @@ const sidebars = {
dropdownCategories: [
{
type: "category",
label: "Getting Started",
label: "Get Started",
description: "Learn how to use ClickHouse",
customProps: {
href: "/introduction-clickhouse",
Expand Down
2 changes: 1 addition & 1 deletion src/components/MobileSideBarMenu/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const MobileSideBarMenu = ({sidebar, menu}) => {
}, [currentMenuState]);

// Define the breakpoint where mobile menu should be hidden (laptop breakpoint)
const LAPTOP_BREAKPOINT = 1330;
const LAPTOP_BREAKPOINT = 1100;

// Initialize the previous location ref on first render and monitor location changes
useEffect(() => {
Expand Down
6 changes: 3 additions & 3 deletions src/css/breakpoints.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$mobile-breakpoint: 996px;
$tablet-breakpoint: 1024px;
$laptop-breakpoint: 1330px;
$mobile-breakpoint: 768px;
$tablet-breakpoint: 900px;
$laptop-breakpoint: 1100px;
$large-desktop-breakpoint: 1440px;

// If you change these breakpoints, make sure to update
Expand Down
2 changes: 1 addition & 1 deletion src/theme/Navbar/Content/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
}
}

@media screen and (min-width: breakpoints.$mobile-breakpoint) {
@media screen and (min-width: breakpoints.$laptop-breakpoint) {
.navRight .mobileSearchBar {
display: none;
}
Expand Down