From 2dc0f0db2922b101ffd5c03434c0ff6ce7929163 Mon Sep 17 00:00:00 2001 From: QQ Date: Tue, 17 Nov 2026 08:29:57 +0800 Subject: [PATCH] Import apps/android/src/screens/message-actions.tsx --- apps/android/src/screens/message-actions.tsx | 42 ++++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/apps/android/src/screens/message-actions.tsx b/apps/android/src/screens/message-actions.tsx index 4fce4ff..5c25c1c 100644 --- a/apps/android/src/screens/message-actions.tsx +++ b/apps/android/src/screens/message-actions.tsx @@ -1,5 +1,6 @@ import { createContext, useContext, useEffect, useRef, useState } from 'react' -import { AccessibilityInfo, Alert, Animated, Modal, Pressable, StyleSheet, Text, View } from 'react-native' +import { AccessibilityInfo, Animated, Modal, Pressable, StyleSheet, Text, View } from 'react-native' +import { Alert } from '../ui/alert' import * as Clipboard from 'expo-clipboard' import type { ChatItemBase, ChatMessage, RemoteSession } from '../types' import { useAppStore } from '../state/store' @@ -72,8 +73,8 @@ export function TurnUsageModal({ onRequestClose={onClose} statusBarTranslucent > - - true}> + + true}> {/* Header row */} @@ -210,7 +211,7 @@ export function MessageActions({ item, hideTime }: { item: ChatMessage; hideTime if (user) { return ( - {time !== undefined && !hideTime && {messageClock(time)}} + {time !== undefined && !hideTime && {messageClock(time)}} {copied ? ( - + ) : ( - + )} @@ -281,7 +282,7 @@ export function MessageActions({ item, hideTime }: { item: ChatMessage; hideTime )} {time !== undefined && ( - + {messageClock(time)} )} @@ -300,24 +301,25 @@ export function MessageActions({ item, hideTime }: { item: ChatMessage; hideTime } const styles = StyleSheet.create({ - row: { flexDirection: 'row', alignItems: 'center', minHeight: 32 }, - userRow: { justifyContent: 'flex-end', gap: 8, paddingTop: 4 }, + row: { flexDirection: 'row', alignItems: 'center', minHeight: 24 }, + userRow: { justifyContent: 'flex-end', gap: 6, paddingTop: 3, paddingRight: 2 }, + userTimeText: { fontSize: 11, fontVariant: ['tabular-nums'] }, assistantRow: { flexDirection: 'row', alignItems: 'center', - gap: 12, - minHeight: 32, - paddingTop: 8, + gap: 10, + minHeight: 28, + paddingTop: 6, paddingBottom: 2, }, timeText: { - fontSize: 12, + fontSize: 11, fontVariant: ['tabular-nums'], - marginLeft: -4, + marginLeft: -2, }, actionBtn: { - width: 28, - height: 28, + width: 26, + height: 26, alignItems: 'center', justifyContent: 'center', }, @@ -325,16 +327,15 @@ const styles = StyleSheet.create({ flexDirection: 'row', alignItems: 'center', gap: 4, - height: 28, + height: 26, paddingHorizontal: 2, }, usageText: { - fontSize: 12, + fontSize: 11.5, fontWeight: '400', }, modalOverlay: { flex: 1, - backgroundColor: 'rgba(0, 0, 0, 0.25)', justifyContent: 'center', alignItems: 'center', padding: 20, @@ -342,10 +343,9 @@ const styles = StyleSheet.create({ usageCard: { width: '100%', maxWidth: 340, - borderRadius: 14, + borderRadius: 16, borderWidth: StyleSheet.hairlineWidth, padding: 16, - shadowColor: '#000', shadowOffset: { width: 0, height: 4 }, shadowOpacity: 0.12, shadowRadius: 16,