Send files directly between devices over the internet - no cloud storage, no size limits.
TypeScript cross-platformdata-transferdecentralizedfile-sharingfile-transferhole-punchingopen-sourcep2ppeer-to-peerprivacyprivacy-tools
fix UI mobile inconsistency
Denis Lupookovf34abafb8294
diff --git a/apps/mobile/src/transfer/receive/views/ErrorPanel.tsx b/apps/mobile/src/transfer/receive/views/ErrorPanel.tsxindex a002a9e..d3966c1 100644--- a/apps/mobile/src/transfer/receive/views/ErrorPanel.tsx+++ b/apps/mobile/src/transfer/receive/views/ErrorPanel.tsx@@ -1,5 +1,6 @@import { StyleSheet, View } from 'react-native'import { useTheme, withAlpha } from '@altersend/components'+import { AlertCircleIcon } from '@altersend/components/icons'import { Text } from '@/src/components/ThemedText'interface ErrorPanelProps {@@ -9,32 +10,53 @@ interface ErrorPanelProps {export function ErrorPanel({ title, message }: ErrorPanelProps) {const { theme } = useTheme()+ const c = theme.colorsreturn (<Viewstyle={[styles.container,{- backgroundColor: withAlpha(theme.colors.colorDanger, 0.12),- borderColor: withAlpha(theme.colors.colorDanger, 0.24)+ backgroundColor: withAlpha(c.colorDanger, 0.12),+ borderColor: withAlpha(c.colorDanger, 0.24)}]}>- <Text style={[styles.title, { color: theme.colors.colorDanger }]}>{title}</Text>- <Text style={[styles.text, { color: theme.colors.colorDanger }]}>{message}</Text>+ <View style={[styles.iconBox, { backgroundColor: withAlpha(c.colorDanger, 0.18) }]}>+ <AlertCircleIcon size={20} color={c.colorDanger} />+ </View>+ <View style={styles.content}>+ <Text style={[styles.title, { color: c.colorDanger }]}>{title}</Text>+ <Text style={[styles.text, { color: c.colorDanger }]}>{message}</Text>+ </View></View>)}const styles = StyleSheet.create({container: {- borderRadius: 14,+ flexDirection: 'row',+ alignItems: 'center',+ gap: 14,+ borderRadius: 12,borderWidth: 1,- padding: 18,- gap: 4+ padding: 16+ },+ iconBox: {+ width: 40,+ height: 40,+ borderRadius: 12,+ alignItems: 'center',+ justifyContent: 'center'+ },+ content: {+ flex: 1,+ gap: 2},title: {- fontSize: 14,- fontWeight: '600'+ fontSize: 15,+ fontWeight: '700',+ lineHeight: 20,+ letterSpacing: -0.2},text: {fontSize: 13,diff --git a/apps/mobile/src/transfer/receive/views/ReceiveCompleteView.tsx b/apps/mobile/src/transfer/receive/views/ReceiveCompleteView.tsxindex 5fb126e..ac42618 100644--- a/apps/mobile/src/transfer/receive/views/ReceiveCompleteView.tsx+++ b/apps/mobile/src/transfer/receive/views/ReceiveCompleteView.tsx@@ -1,6 +1,6 @@import React from 'react'import { StyleSheet, View } from 'react-native'-import { LinkRow, useTheme, withAlpha } from '@altersend/components'+import { LinkRow, useTheme } from '@altersend/components'import { CheckIcon } from '@altersend/components/icons'import { formatFileSize, getOfferKey, useTransferStore } from '@altersend/domain'import { useTranslation } from '@altersend/locales'@@ -23,31 +23,17 @@ export function ReceiveCompleteView() {return (<View style={styles.container}>- <View- style={[- styles.successCard,- {- borderColor: withAlpha(theme.colors.colorSuccess, 0.22),- backgroundColor: withAlpha(theme.colors.colorSuccess, 0.08)- }- ]}- >- <View- style={[- styles.checkBadge,- { backgroundColor: withAlpha(theme.colors.colorSuccess, 0.2) }- ]}+ <View style={styles.successRow}>+ <CheckIcon size={17} color={theme.colors.colorSuccess} />+ <Text style={[styles.successTitle, { color: theme.colors.colorTextPrimary }]}>+ {t('receive:page.completed.title', { count: fileCount })}+ </Text>+ <Text+ style={[styles.successMeta, { color: theme.colors.colorTextMuted }]}+ numberOfLines={1}>- <CheckIcon size={16} color={theme.colors.colorSuccess} />- </View>- <View style={styles.successText}>- <Text style={[styles.successTitle, { color: theme.colors.colorSuccess }]}>- {t('receive:page.completed.title', { count: fileCount })}- </Text>- <Text style={[styles.successSubtitle, { color: theme.colors.colorTextMuted }]}>- {formatFileSize(totalBytes)} · {t('receive:summary.saved')}- </Text>- </View>+ {formatFileSize(totalBytes)} · {t('receive:summary.saved')}+ </Text></View><View@@ -87,38 +73,25 @@ export function ReceiveCompleteView() {const styles = StyleSheet.create({container: {- gap: 12+ gap: 14},- successCard: {+ successRow: {flexDirection: 'row',alignItems: 'center',- gap: 14,- borderRadius: 14,- borderWidth: 1,- padding: 16- },- checkBadge: {- width: 32,- height: 32,- borderRadius: 10,- alignItems: 'center',- justifyContent: 'center',- flexShrink: 0- },- successText: {- flex: 1,- minWidth: 0+ gap: 8,+ paddingHorizontal: 2},successTitle: {- fontSize: 15,- fontWeight: '700'+ fontSize: 14,+ fontWeight: '600',+ letterSpacing: -0.2},- successSubtitle: {- fontSize: 13,- marginTop: 2+ successMeta: {+ flex: 1,+ fontSize: 13},card: {- borderRadius: 14,+ borderRadius: 12,borderWidth: 1,overflow: 'hidden'}diff --git a/apps/mobile/src/transfer/send/views/ShareView.tsx b/apps/mobile/src/transfer/send/views/ShareView.tsxindex 97deabd..503ae18 100644--- a/apps/mobile/src/transfer/send/views/ShareView.tsx+++ b/apps/mobile/src/transfer/send/views/ShareView.tsx@@ -295,8 +295,8 @@ const styles = StyleSheet.create({sectionCount: { fontSize: 11.5, fontWeight: '500' },section: { marginBottom: 16 },filesWrap: { marginBottom: 24 },- tiles: { flexDirection: 'row', gap: 12, marginBottom: 24 },- tile: { flex: 1, minWidth: 0 },+ tiles: { flexDirection: 'row', alignItems: 'stretch', gap: 12, marginBottom: 24 },+ tile: { flexGrow: 1, flexShrink: 1, flexBasis: 0, minWidth: 0 },invitePanel: {marginBottom: 20},