The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 23, 04:15 UTC
fix(mobile): account badges no longer clip wide initials like WO (#15908)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Vitaly Iegorov committed
Oct 18, 2026 at 21:17 UTC
e76d648f96052d9e494054bf4828f070be9c0118
1 file changed
+27
-23
apps/mobile/src/components/ProviderIcon.tsx
+27
-23
@@ -162,34 +162,38 @@ export function ProviderInstanceIcon(props: {
162
<ProviderIcon iconUrl={props.iconUrl} provider={props.provider} size={props.size} />
163
</View>
164
{props.showBadge ? (
165
+ // A wide right-aligned box lets the badge fit its initials. Alone, an
166
+ // absolute badge is capped at the icon's width, which clips "WO".
167
<View
166
- className={props.accentColor ? undefined : "bg-card"}
167
- style={{
168
- position: "absolute",
169
- right: -3,
170
- bottom: -3,
171
- height: 12,
172
- minWidth: 12,
173
- paddingHorizontal: 2,
174
- borderRadius: 999,
175
- borderWidth: 1,
176
- borderColor: props.surfaceColor,
177
- backgroundColor: props.accentColor,
178
- alignItems: "center",
179
- justifyContent: "center",
180
- }}
168
+ pointerEvents="none"
169
+ style={{ position: "absolute", right: -3, bottom: -3, width: 32, alignItems: "flex-end" }}
170
>
182
- <Text
183
- className={props.accentColor ? undefined : "text-foreground-muted"}
171
+ <View
172
+ className={props.accentColor ? undefined : "bg-card"}
173
style={{
185
- fontSize: 7,
186
- fontWeight: "600",
187
- lineHeight: 9,
188
- color: props.accentColor ? "#ffffff" : undefined,
174
+ height: 12,
175
+ minWidth: 12,
176
+ paddingHorizontal: 2,
177
+ borderRadius: 999,
178
+ borderWidth: 1,
179
+ borderColor: props.surfaceColor,
180
+ backgroundColor: props.accentColor,
181
+ alignItems: "center",
182
+ justifyContent: "center",
183
}}
184
>
191
- {providerInstanceInitials(props.displayName)}
192
- </Text>
185
+ <Text
186
+ className={props.accentColor ? undefined : "text-foreground-muted"}
187
+ style={{
188
+ fontSize: 7,
189
+ fontWeight: "600",
190
+ lineHeight: 9,
191
+ color: props.accentColor ? "#ffffff" : undefined,
192
+ }}
193
+ >
194
+ {providerInstanceInitials(props.displayName)}
195
+ </Text>
196
+ </View>
197
</View>
198
) : null}
199
</View>