Skip to content

Commit 8e2e90e

Browse files
authored
feat(styles): set medium breakpoint to standarized value (#1446)
1 parent 11e1090 commit 8e2e90e

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/docsearch-css/src/button.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
width: 20px;
6464
}
6565

66-
@media (max-width: 750px) {
66+
@media (max-width: 768px) {
6767
.DocSearch-Button-Keys,
6868
.DocSearch-Button-Placeholder {
6969
display: none;

packages/docsearch-css/src/modal.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ svg.DocSearch-Hit-Select-Icon {
556556
}
557557

558558
/* Responsive */
559-
@media (max-width: 750px) {
559+
@media (max-width: 768px) {
560560
:root {
561561
--docsearch-spacing: 10px;
562562
--docsearch-footer-height: 40px;

packages/docsearch-react/src/DocSearchModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export function DocSearchModal({
332332
}, []);
333333

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

337337
if (isMobileMediaQuery.matches) {
338338
snippetLength.current = 5;

0 commit comments

Comments
 (0)