Skip to content

Commit 5a2f8fc

Browse files
committed
fix: tweak styles for android
1 parent 6cb4a3e commit 5a2f8fc

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

apps/mobile/src/modules/discover/Category.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const Category = () => {
2525
<View className="mt-4 flex-row items-center justify-between pb-1 pl-6 pr-5 pt-4">
2626
<View className="flex-row items-center gap-2">
2727
<Grid2CuteReIcon width={24} height={24} color={label} />
28-
<Text className="text-label text-2xl font-bold leading-[1.1]">Categories</Text>
28+
<Text className="text-label pb-2 text-2xl font-bold leading-[1.1]">Categories</Text>
2929
</View>
3030
<ItemPressable
3131
className="rounded-lg p-1"

apps/mobile/src/modules/discover/Trending.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const Trending = ({
4040
<View className={cn("flex-row items-center justify-between pb-1 pt-4", itemClassName)}>
4141
<View className="flex-row items-center gap-2">
4242
<TrendingUpCuteReIcon width={24} height={24} color={label} />
43-
<Text className="text-label text-2xl font-bold leading-[1.1]">Trending</Text>
43+
<Text className="text-label pb-2 text-2xl font-bold leading-[1.1]">Trending</Text>
4444
</View>
4545
<ItemPressable
4646
className="rounded-lg p-1"

apps/mobile/src/modules/discover/search.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ const SearchInput = () => {
167167
</Animated.View>
168168
)}
169169
<TextInput
170+
textAlignVertical="center"
170171
enterKeyHint="search"
171172
autoFocus={isFocused}
172173
ref={inputRef}
@@ -203,7 +204,13 @@ const SearchInput = () => {
203204
className="absolute -right-20 w-20 pl-4"
204205
style={cancelButtonAnimatedStyle}
205206
>
206-
<Text className="text-accent text-lg font-medium">Cancel</Text>
207+
<Text
208+
// Fix font scaling issues on Android
209+
allowFontScaling={false}
210+
className="text-accent text-lg font-medium"
211+
>
212+
Cancel
213+
</Text>
207214
</ReAnimatedTouchableOpacity>
208215
</Animated.View>
209216
)

0 commit comments

Comments
 (0)