Skip to content

Commit

Permalink
feat(css): set breakpoints the de facto value
Browse files Browse the repository at this point in the history
768px has been much more common for many years (since 2010), and
other major CSS frameworks have used 768px as the breakpoint for
years.

Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
  • Loading branch information
tnir committed Jul 21, 2022
1 parent 83abe4c commit 3fbd52d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/docsearch-css/src/button.css
Expand Up @@ -63,7 +63,7 @@
width: 20px;
}

@media (max-width: 750px) {
@media (max-width: 768px) {
.DocSearch-Button-Keys,
.DocSearch-Button-Placeholder {
display: none;
Expand Down
2 changes: 1 addition & 1 deletion packages/docsearch-css/src/modal.css
Expand Up @@ -556,7 +556,7 @@ svg.DocSearch-Hit-Select-Icon {
}

/* Responsive */
@media (max-width: 750px) {
@media (max-width: 768px) {
:root {
--docsearch-spacing: 10px;
--docsearch-footer-height: 40px;
Expand Down
2 changes: 1 addition & 1 deletion packages/docsearch-react/src/DocSearchModal.tsx
Expand Up @@ -332,7 +332,7 @@ export function DocSearchModal({
}, []);

React.useEffect(() => {
const isMobileMediaQuery = window.matchMedia('(max-width: 750px)');
const isMobileMediaQuery = window.matchMedia('(max-width: 768px)');

if (isMobileMediaQuery.matches) {
snippetLength.current = 5;
Expand Down

0 comments on commit 3fbd52d

Please sign in to comment.