Skip to content

Commit e447dae

Browse files
committed
Update BloxInteractionImproved.tsx
1 parent d7ad472 commit e447dae

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

apps/box/src/screens/Blox/components/BloxInteractionImproved.tsx

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,18 @@ export const BloxInteractionImproved = ({
125125
alignItems="center"
126126
justifyContent="center"
127127
>
128+
{/* Tower Icon - Separate touch target */}
128129
<FxPressableOpacity
129130
onPress={() => currentBloxPeerId && onBloxPress?.(currentBloxPeerId)}
130131
alignItems="center"
132+
paddingVertical="8"
131133
>
132134
<Icon />
133-
134-
{/* Blox Name with Dropdown Arrow */}
135-
<FxBox flexDirection="row" alignItems="center" marginTop="12">
135+
</FxPressableOpacity>
136+
137+
{/* Blox Name with Dropdown Arrow - Larger touch target with more spacing */}
138+
<FxBox alignItems="center" marginTop="16">
139+
<FxBox flexDirection="row" alignItems="center">
136140
<FxText variant="bodyLargeRegular" marginRight="8">
137141
{currentBlox?.title || 'Unknown Blox'}
138142
</FxText>
@@ -142,6 +146,8 @@ export const BloxInteractionImproved = ({
142146
onPress={showBloxSelection}
143147
disabled={isBloxSwitching}
144148
opacity={isBloxSwitching ? 0.5 : 1}
149+
padding="8"
150+
hitSlop={{ top: 8, bottom: 8, left: 8, right: 8 }}
145151
>
146152
<FxChevronDownIcon
147153
width={16}
@@ -151,14 +157,17 @@ export const BloxInteractionImproved = ({
151157
</FxPressableOpacity>
152158
)}
153159
</FxBox>
154-
155-
{/* Connection Status */}
160+
</FxBox>
161+
162+
{/* Connection Status - Larger touch target with more spacing */}
163+
<FxBox alignItems="center" marginTop="20">
156164
<FxPressableOpacity
157165
flexDirection="row"
158166
alignItems="center"
159-
paddingVertical="4"
167+
paddingVertical="8"
168+
paddingHorizontal="12"
160169
onPress={onConnectionPress}
161-
marginTop="8"
170+
hitSlop={{ top: 8, bottom: 8, left: 8, right: 8 }}
162171
>
163172
<CircleFilledIcon
164173
color={getStatusColor()}
@@ -179,7 +188,7 @@ export const BloxInteractionImproved = ({
179188
fill={colors.content1}
180189
/>
181190
</FxPressableOpacity>
182-
</FxPressableOpacity>
191+
</FxBox>
183192
</FxBox>
184193

185194
{/* Blox Selection Bottom Sheet */}

0 commit comments

Comments
 (0)