File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ export function CompactBrandTitle(
3535 accessibilityLabel = "T3 Code, Threads"
3636 accessible
3737 role = "heading"
38- className = "flex-row items-center"
39- style = { { marginLeft : titleOffset , gap : 6 * scale } }
38+ className = "flex-row items-center gap-1.5 "
39+ style = { [ { marginLeft : titleOffset } , Platform . OS === "android" && { gap : 6 * scale } ] }
4040 >
4141 < T3Wordmark colorClassName = "accent-icon" height = { Math . round ( 15 * scale ) } />
4242 < Text
@@ -47,8 +47,12 @@ export function CompactBrandTitle(
4747 Code
4848 </ Text >
4949 < View
50- className = "rounded-full bg-subtle"
51- style = { { paddingHorizontal : 6 * scale , paddingVertical : 2 * scale } }
50+ className = "rounded-full bg-subtle px-1.5 py-0.5"
51+ style = {
52+ Platform . OS === "android"
53+ ? { paddingHorizontal : 6 * scale , paddingVertical : 2 * scale }
54+ : undefined
55+ }
5256 >
5357 < Text
5458 allowFontScaling = { props . allowFontScaling }
Original file line number Diff line number Diff line change 11import type { ComponentProps , ReactNode } from "react" ;
22import { useCallback , useMemo , useState } from "react" ;
33import {
4+ Platform ,
45 Pressable ,
56 ScrollView ,
67 View ,
@@ -56,8 +57,10 @@ export function ComposerInlineControl(props: {
5657 >
5758 { props . renderIcon ? (
5859 < View
59- className = "shrink-0 items-center justify-center"
60- style = { { width : smallIconSize , height : smallIconSize } }
60+ className = "size-4 shrink-0 items-center justify-center"
61+ style = {
62+ Platform . OS === "android" ? { width : smallIconSize , height : smallIconSize } : undefined
63+ }
6164 >
6265 { props . renderIcon ( smallIconSize ) }
6366 </ View >
Original file line number Diff line number Diff line change @@ -127,8 +127,11 @@ export function WorkspaceConnectionTitle(props: {
127127 disabled = { props . onPress === undefined }
128128 hitSlop = { 8 }
129129 onPress = { props . onPress }
130- className = "flex-row items-center"
131- style = { { flexShrink : 1 , marginLeft : props . statusOffset ?? 0 , gap : 8 * scale } }
130+ className = "flex-row items-center gap-2"
131+ style = { [
132+ { flexShrink : 1 , marginLeft : props . statusOffset ?? 0 } ,
133+ Platform . OS === "android" && { gap : 8 * scale } ,
134+ ] }
132135 >
133136 { status . showsProgress ? (
134137 < ActivityIndicator
Original file line number Diff line number Diff line change @@ -146,14 +146,24 @@ function NewTaskWorkspaceIcon(props: {
146146 }
147147
148148 return (
149- < View style = { { width : props . size , height : props . size } } >
149+ < View
150+ className = "size-4"
151+ style = { Platform . OS === "android" ? { width : props . size , height : props . size } : undefined }
152+ >
150153 < SymbolView
151154 name = "folder"
152155 size = { props . size }
153156 tintColorClassName = "accent-icon-muted"
154157 type = "monochrome"
155158 />
156- < View className = "absolute" style = { { right : - props . size / 4 , bottom : - props . size / 4 } } >
159+ < View
160+ className = "absolute -right-1 -bottom-1"
161+ style = {
162+ Platform . OS === "android"
163+ ? { right : - props . size / 4 , bottom : - props . size / 4 }
164+ : undefined
165+ }
166+ >
157167 < SymbolView
158168 name = "arrow.triangle.branch"
159169 size = { Math . round ( ( 9 * props . size ) / 16 ) }
You can’t perform that action at this time.
0 commit comments