refactor(ui): redesign SearchBar with compact mode and add home screen tabs
Refactor SearchBar component to support compact mode with transparent styling, reduced padding, and smaller icons. Add home screen tab navigation for switching between home feed and market view with animated tab indicator. Also adjust PostDetailScreen action button sizing and CommentItem margins for better spacing.
This commit is contained in:
@@ -1472,7 +1472,7 @@ export const PostDetailScreen: React.FC = () => {
|
||||
<TouchableOpacity style={styles.bottomActionItem} onPress={handleLike}>
|
||||
<MaterialCommunityIcons
|
||||
name={post?.is_liked ? 'thumb-up' : 'thumb-up-outline'}
|
||||
size={isDesktop ? 23 : 21}
|
||||
size={isDesktop ? 26 : 24}
|
||||
color={post?.is_liked ? colors.primary.main : colors.text.secondary}
|
||||
/>
|
||||
<Text variant="caption" style={styles.bottomActionCount}>
|
||||
@@ -1483,7 +1483,7 @@ export const PostDetailScreen: React.FC = () => {
|
||||
<TouchableOpacity style={styles.bottomActionItem} onPress={handleFavorite}>
|
||||
<MaterialCommunityIcons
|
||||
name={post?.is_favorited ? 'star' : 'star-outline'}
|
||||
size={isDesktop ? 23 : 21}
|
||||
size={isDesktop ? 26 : 24}
|
||||
color={post?.is_favorited ? colors.warning.main : colors.text.secondary}
|
||||
/>
|
||||
<Text variant="caption" style={styles.bottomActionCount}>
|
||||
@@ -1492,7 +1492,7 @@ export const PostDetailScreen: React.FC = () => {
|
||||
</TouchableOpacity>
|
||||
|
||||
<TouchableOpacity style={styles.bottomActionItem} onPress={handleShare}>
|
||||
<MaterialCommunityIcons name="share-outline" size={isDesktop ? 23 : 21} color={colors.text.secondary} />
|
||||
<MaterialCommunityIcons name="share-outline" size={isDesktop ? 26 : 24} color={colors.text.secondary} />
|
||||
<Text variant="caption" style={styles.bottomActionCount}>
|
||||
{formatNumber(post?.shares_count || 0)}
|
||||
</Text>
|
||||
@@ -2153,7 +2153,7 @@ function createPostDetailStyles(colors: AppColors) {
|
||||
borderRadius: 20,
|
||||
paddingHorizontal: spacing.md,
|
||||
paddingVertical: spacing.sm + 2,
|
||||
minHeight: 40,
|
||||
minHeight: 44,
|
||||
justifyContent: 'center',
|
||||
},
|
||||
inputTriggerText: {
|
||||
@@ -2163,14 +2163,14 @@ function createPostDetailStyles(colors: AppColors) {
|
||||
bottomComposerRow: {
|
||||
flexDirection: 'row',
|
||||
alignItems: 'center',
|
||||
gap: spacing.xs + 2,
|
||||
gap: spacing.xs,
|
||||
},
|
||||
bottomActionItem: {
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
paddingVertical: 2,
|
||||
paddingHorizontal: spacing.sm + 1,
|
||||
marginLeft: spacing.xs,
|
||||
paddingHorizontal: spacing.sm,
|
||||
marginLeft: 0,
|
||||
},
|
||||
bottomActionCount: {
|
||||
marginTop: 1,
|
||||
|
||||
Reference in New Issue
Block a user