Skip to content

Commit 80052d6

Browse files
Fix packages search input on mobile (#2332)
* Update style to match QuickSearch component * Update id to differentiate from Search component
1 parent 8187b80 commit 80052d6

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

components/QuickSearch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export default function QuickSearch({ style }: Props) {
144144
</View>
145145
<TextInput
146146
ref={inputRef}
147-
id="search"
147+
id="quick-search"
148148
autoComplete="off"
149149
onKeyPress={event => {
150150
if ('key' in event) {

components/Search.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,7 @@ export default function Search({ query, total, style }: Props) {
102102
onBlur={() => setInputFocused(false)}
103103
onChangeText={typingCallback}
104104
placeholder="Search libraries..."
105-
style={[
106-
tw`h-12.5 font-sans pr-30 flex flex-1 rounded-md border-2 border-palette-gray5 bg-palette-gray6 p-4 text-xl text-white -outline-offset-2 dark:border-default dark:bg-dark`,
107-
!isSmallScreen && tw`pl-11`,
108-
]}
105+
style={tw`h-12.5 font-sans pr-30 flex flex-1 rounded-md border-2 border-palette-gray5 bg-palette-gray6 p-4 pl-11 text-xl text-white -outline-offset-2 dark:border-default dark:bg-dark`}
109106
defaultValue={search}
110107
placeholderTextColor={tw`text-palette-gray4`.color as ColorValue}
111108
/>

0 commit comments

Comments
 (0)