Skip to content
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

feat(styles): set medium breakpoint to standarized value #1446

Merged
merged 2 commits into from Jul 21, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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