TypeScript
fix(mobile): keep preview count badges inside the working pill (#18449)
Ryan4ab4cdf45237
diff --git a/apps/mobile/src/features/browser/browser-preview-button.tsx b/apps/mobile/src/features/browser/browser-preview-button.tsxindex 78bd6d8eebe..c36449c7797 100644--- a/apps/mobile/src/features/browser/browser-preview-button.tsx+++ b/apps/mobile/src/features/browser/browser-preview-button.tsx@@ -28,7 +28,7 @@ export function BrowserPreviewButton(props: {{props.count === 1 ? "One tab open" : `${props.count} tabs open`}</AppText>) : props.count > 1 ? (- <View className="absolute right-0.5 top-0.5 min-w-4 items-center rounded-full bg-primary px-1">+ <View className="absolute right-1.5 top-1.5 min-w-4 items-center rounded-full bg-primary px-1"><AppText className="text-2xs font-t3-bold text-primary-foreground">{props.count}</AppText></View>) : null}diff --git a/apps/mobile/src/features/devices/device-preview-button.tsx b/apps/mobile/src/features/devices/device-preview-button.tsxindex 01e78994671..1e61f9d3464 100644--- a/apps/mobile/src/features/devices/device-preview-button.tsx+++ b/apps/mobile/src/features/devices/device-preview-button.tsx@@ -32,7 +32,7 @@ export function DevicePreviewButton(props: {{props.count === 1 ? "One device open" : `${props.count} devices open`}</AppText>) : props.count > 1 ? (- <View className="absolute right-0.5 top-0.5 min-w-4 items-center rounded-full bg-primary px-1">+ <View className="absolute right-1.5 top-1.5 min-w-4 items-center rounded-full bg-primary px-1"><AppText className="text-2xs font-t3-bold text-primary-foreground">{props.count}</AppText></View>) : null}