Skip to content

Commit

Permalink
feat(styles): set medium breakpoint to standarized value (#1446)
Browse files Browse the repository at this point in the history
  • Loading branch information
tnir committed Jul 21, 2022
1 parent 11e1090 commit 8e2e90e
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 8e2e90e

Please sign in to comment.