@@ -196,20 +196,24 @@ export function FloatingWorkingControl(props: { |
196 | 196 | <View className="flex-row items-center"> |
197 | 197 | {statusContent} |
198 | 198 | {action !== null ? ( |
199 | | - <Pressable |
200 | | - accessibilityRole="button" |
201 | | - accessibilityLabel={action.accessibilityLabel} |
202 | | - accessibilityState={{ disabled: action.disabled }} |
203 | | - disabled={action.disabled} |
204 | | - onPress={action.onPress} |
| 199 | + <View |
205 | 200 | onLayout={(event) => setActionWidth(settleWidth(event.nativeEvent.layout.width))} |
206 | | - className={`h-11 flex-row items-center gap-1.5 px-3 active:opacity-70 ${action.disabled ? "opacity-50" : ""}`} |
| 201 | + className="h-11 flex-row items-center" |
207 | 202 | > |
208 | | - <View className="mr-1 h-4 w-px bg-border" /> |
209 | | - <Text className="font-t3-medium text-xs text-foreground" numberOfLines={1}> |
210 | | - {action.label} |
211 | | - </Text> |
212 | | - </Pressable> |
| 203 | + <View className="h-4 w-px bg-border" /> |
| 204 | + <Pressable |
| 205 | + accessibilityRole="button" |
| 206 | + accessibilityLabel={action.accessibilityLabel} |
| 207 | + accessibilityState={{ disabled: action.disabled }} |
| 208 | + disabled={action.disabled} |
| 209 | + onPress={action.onPress} |
| 210 | + className={`h-11 items-center justify-center px-3 active:opacity-70 ${action.disabled ? "opacity-50" : ""}`} |
| 211 | + > |
| 212 | + <Text className="font-t3-medium text-xs text-foreground" numberOfLines={1}> |
| 213 | + {action.label} |
| 214 | + </Text> |
| 215 | + </Pressable> |
| 216 | + </View> |
213 | 217 | ) : null} |
214 | 218 | {hasPreview ? ( |
215 | 219 | <View |
@@ -234,7 +238,7 @@ export function FloatingWorkingControl(props: { |
234 | 238 | onLayout={(event) => setAgentsWidth(settleWidth(event.nativeEvent.layout.width))} |
235 | 239 | className="h-11 flex-row items-center gap-1.5 px-3 active:opacity-70" |
236 | 240 | > |
237 | | - {hasStatus || hasPreview ? <View className="mr-1 h-4 w-px bg-border" /> : null} |
| 241 | + {hasStatus || hasPreview ? <View className="absolute left-0 h-4 w-px bg-border" /> : null} |
238 | 242 | <SymbolView name="person.2" size={13} tintColorClassName="accent-foreground-muted" /> |
239 | 243 | <Text className="font-t3-medium text-xs tabular-nums" numberOfLines={1}> |
240 | 244 | {agents.label} |
@@ -252,7 +256,7 @@ export function FloatingWorkingControl(props: { |
252 | 256 | className="h-11 flex-row items-center gap-2 px-3 active:opacity-70" |
253 | 257 | > |
254 | 258 | {hasStatus || hasPreview || hasAgents ? ( |
255 | | - <View className="mr-1 h-4 w-px bg-border" /> |
| 259 | + <View className="absolute left-0 h-4 w-px bg-border" /> |
256 | 260 | ) : null} |
257 | 261 | <SymbolView name="list.number" size={13} tintColorClassName="accent-foreground-muted" /> |
258 | 262 | <Text className="shrink font-t3-medium text-xs tabular-nums" numberOfLines={1}> |
|