Skip to content

Commit a2dbcbd

Browse files
bidahclaude
andcommitted
🎨 fix(floating-chat): center header title and rename to Remote Control
Make close button absolutely positioned so it doesn't affect title centering. Rename header from "Chat" to "Remote Control". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 77d40a2 commit a2dbcbd

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

‎packages/sandbox/local-expo-app/features/floating-chat/ChatScreen.tsx‎

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -365,14 +365,12 @@ export function ChatScreen({ projectId, onClose }: ChatScreenProps) {
365365
<View style={styles.container}>
366366
{/* Header */}
367367
<View style={styles.header}>
368-
<View style={styles.headerTitleContainer}>
369-
<Text style={styles.headerTitle} numberOfLines={1}>
370-
Chat
371-
</Text>
372-
</View>
368+
<Text style={styles.headerTitle} numberOfLines={1}>
369+
Remote Control
370+
</Text>
373371
<TouchableOpacity
374372
onPress={onClose}
375-
style={styles.headerButton}
373+
style={styles.headerCloseButton}
376374
activeOpacity={0.7}
377375
>
378376
<X size={22} color="black" />
@@ -469,26 +467,24 @@ const styles = StyleSheet.create({
469467
backgroundColor: '#fff',
470468
},
471469
header: {
472-
flexDirection: 'row',
473470
alignItems: 'center',
474-
justifyContent: 'space-between',
471+
justifyContent: 'center',
475472
paddingHorizontal: 16,
476473
paddingVertical: 12,
477474
borderBottomWidth: 1,
478475
borderBottomColor: '#e0e0e0',
479476
backgroundColor: '#fff',
477+
position: 'relative',
480478
},
481-
headerButton: {
479+
headerCloseButton: {
480+
position: 'absolute',
481+
right: 16,
482482
width: 44,
483483
height: 44,
484484
alignItems: 'center',
485485
justifyContent: 'center',
486486
borderRadius: 22,
487487
},
488-
headerTitleContainer: {
489-
flex: 1,
490-
marginHorizontal: 12,
491-
},
492488
headerTitle: {
493489
fontSize: 17,
494490
fontWeight: '600',

0 commit comments

Comments
 (0)