Skip to content

Commit daedda9

Browse files
committed
fix(#1999): fix search autocomplete width for mobile
Still need !important.
1 parent 151c95c commit daedda9

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

packages/dev/docs/src/docs.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -635,9 +635,12 @@ h2.sectionHeader {
635635

636636
.docSearchBox {
637637
margin-inline-start: auto;
638-
width: var(--spectrum-global-dimension-size-3000);
638+
width: var(--spectrum-global-dimension-size-3000) !important;
639639
> div {
640640
width: 100%;
641+
> div {
642+
width: 100%;
643+
}
641644
}
642645
}
643646
}
@@ -802,10 +805,10 @@ h2.sectionHeader {
802805
}
803806
}
804807

805-
@media (max-width: 375px) {
808+
@media (max-width: 320px) {
806809
.docSearchBoxThemeProvider {
807810
.docSearchBox {
808-
width: var(--spectrum-global-dimension-size-2400);
811+
width: var(--spectrum-global-dimension-size-2400) !important;
809812
}
810813
}
811814
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11779,10 +11779,10 @@ header-case@^1.0.0:
1177911779
no-case "^2.2.0"
1178011780
upper-case "^1.1.3"
1178111781

11782-
highlight.js@9.18.1:
11783-
version "9.18.1"
11784-
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.18.1.tgz#ed21aa001fe6252bb10a3d76d47573c6539fe13c"
11785-
integrity sha512-OrVKYz70LHsnCgmbXctv/bfuvntIKDz177h0Co37DQ5jamGZLVmoCVMtjMtNZY3X9DrCcKfklHPNeA0uPZhSJg==
11782+
highlight.js@^11.6.0:
11783+
version "11.7.0"
11784+
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-11.7.0.tgz#3ff0165bc843f8c9bce1fd89e2fda9143d24b11e"
11785+
integrity sha512-1rRqesRFhMO/PRF+G86evnyJkCgaZFOI+Z6kdj15TA18funfoqJXvgPCLSf0SWq3SRfg1j3HlDs8o4s3EGq1oQ==
1178611786

1178711787
highlight.js@~10.4.0:
1178811788
version "10.4.1"

0 commit comments

Comments
 (0)