From 7a5b73d3cbf836e1a261001a839a5701e1e3ff1d Mon Sep 17 00:00:00 2001 From: balzack Date: Mon, 6 Jan 2025 14:59:26 -0800 Subject: [PATCH] added header status icons --- .../src/conversation/Conversation.styled.ts | 12 ++++++++++++ .../mobile/src/conversation/Conversation.tsx | 16 +++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/app/client/mobile/src/conversation/Conversation.styled.ts b/app/client/mobile/src/conversation/Conversation.styled.ts index e06ebb07..f09ab0e7 100644 --- a/app/client/mobile/src/conversation/Conversation.styled.ts +++ b/app/client/mobile/src/conversation/Conversation.styled.ts @@ -16,6 +16,15 @@ export const styles = StyleSheet.create({ paddingBottom: 8, height: 80, }, + status: { + width: 40, + height: 32, + display: 'flex', + alignItems: 'center', + justifyContent: 'flex-end', + flexDirection: 'row', + gap: 4, + }, assets: { display: 'flex', flexDirection: 'row', @@ -104,12 +113,15 @@ export const styles = StyleSheet.create({ flexDirection: 'row', width: '100%', minWidth: 0, + alignItems: 'center', }, title: { display: 'flex', + flexDirection: 'row', alignItems: 'center', justifyContent: 'center', flexGrow: 1, + gap: 8, }, label: { fontSize: 24, diff --git a/app/client/mobile/src/conversation/Conversation.tsx b/app/client/mobile/src/conversation/Conversation.tsx index 0a58a362..b3d0e884 100644 --- a/app/client/mobile/src/conversation/Conversation.tsx +++ b/app/client/mobile/src/conversation/Conversation.tsx @@ -187,8 +187,10 @@ export function Conversation({close}: {close: ()=>void}) { + + - { state.detailSet && state.subject && ( + { state.detailSet && state.subject && ( { state.subject } )} { state.detailSet && state.host && !state.subject && state.subjectNames.length == 0 && ( @@ -201,6 +203,18 @@ export function Conversation({close}: {close: ()=>void}) { { `, ${state.strings.unknownContact} (${state.unknownContacts})` } )} + + { state.detailSet && state.host && ( + + )} + { state.detailSet && !state.host && ( + + )} + { state.detailSet && state.sealed && ( + + )} + + {}} />