Skip to content

Commit a97199a

Browse files
committed
fix(design): tablet responsive
1 parent 6eca639 commit a97199a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/style.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ html[data-theme='dark'] {
538538
@media (max-width: 750px) {
539539
:root {
540540
/* quickfix https://stackoverflow.com/questions/37112218/css3-100vh-not-constant-in-mobile-browser */
541-
--docsearch-modal-height: calc(100vh - 110px);
541+
--docsearch-modal-height: 100vh;
542542
--docsearch-spacing: 10px;
543543
--docsearch-footer-height: 40px;
544544
}
@@ -549,7 +549,9 @@ html[data-theme='dark'] {
549549
.DocSearch-Modal {
550550
border-radius: 0;
551551
box-shadow: none;
552-
margin: 0 auto;
552+
margin: 0;
553+
width: 100%;
554+
max-width: 100%;
553555
}
554556
.DocSearch-Cancel {
555557
display: inline-block;

0 commit comments

Comments
 (0)