Skip to content

Commit 8f04081

Browse files
meteorlxyulivz
authored andcommitted
fix: avoid the searchbox exceeded out of screen in narrow screen (#254)
1 parent 9663bb8 commit 8f04081

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

lib/default-theme/SearchBox.vue

+15-7
Original file line numberDiff line numberDiff line change
@@ -184,14 +184,22 @@ export default {
184184
color $accentColor
185185
186186
@media (max-width: $MQNarrow)
187-
.search-box input
188-
width 0
189-
border-color transparent
190-
position relative
191-
left 1rem
192-
&:focus
187+
.search-box
188+
input
189+
cursor pointer
190+
width 0
191+
border-color transparent
192+
position relative
193+
left 1rem
194+
&:focus
195+
cursor text
196+
left 0
197+
width 10rem
198+
199+
@media (max-width: $MQNarrow) and (min-width: $MQMobile)
200+
.search-box
201+
.suggestions
193202
left 0
194-
width 10rem
195203
196204
@media (max-width: $MQMobile)
197205
.search-box

0 commit comments

Comments
 (0)