Skip to content

Commit 3fbd52d

Browse files
committed
feat(css): set breakpoints the de facto value
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>
1 parent 83abe4c commit 3fbd52d

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)