Page MenuHomePhabricator

D6209.id20968.diff
No OneTemporary

D6209.id20968.diff

diff --git a/native/chat/thread-list-modal.react.js b/native/chat/thread-list-modal.react.js
--- a/native/chat/thread-list-modal.react.js
+++ b/native/chat/thread-list-modal.react.js
@@ -18,6 +18,7 @@
import Modal from '../components/modal.react';
import Search from '../components/search.react';
import SWMansionIcon from '../components/swmansion-icon.react';
+import ThreadPill from '../components/thread-pill.react';
import { useIndicatorStyle, useStyles } from '../themes/colors';
import { waitForModalInputFocus } from '../utils/timers';
import { useNavigateToThread } from './message-list-types';
@@ -52,6 +53,7 @@
props: Props<U>,
): React.Node {
const {
+ threadInfo: parentThreadInfo,
searchState,
setSearchState,
onChangeSearchInputText,
@@ -103,17 +105,22 @@
return (
<Modal modalStyle={styles.modal}>
<View style={styles.header}>
- <Text style={styles.title}>{modalTitle}</Text>
- <TouchableOpacity
- onPress={navigation.goBack}
- style={styles.closeButton}
- >
- <SWMansionIcon
- name="cross"
- size={24}
- color={styles.closeIcon.color}
- />
- </TouchableOpacity>
+ <View style={styles.headerTopRow}>
+ <Text style={styles.title}>{modalTitle}</Text>
+ <TouchableOpacity
+ onPress={navigation.goBack}
+ style={styles.closeButton}
+ >
+ <SWMansionIcon
+ name="cross"
+ size={24}
+ color={styles.closeIcon.color}
+ />
+ </TouchableOpacity>
+ </View>
+ <View style={styles.parentNameWrapper}>
+ <ThreadPill fontSize={12} threadInfo={parentThreadInfo} />
+ </View>
</View>
<View style={styles.body}>
<Search
@@ -138,16 +145,24 @@
}
const unboundStyles = {
+ parentNameWrapper: {
+ alignItems: 'flex-start',
+ },
body: {
paddingHorizontal: 16,
flex: 1,
},
+ headerTopRow: {
+ flexDirection: 'row',
+ justifyContent: 'space-between',
+ height: 32,
+ alignItems: 'center',
+ },
header: {
borderBottomColor: 'subthreadsModalSearch',
borderBottomWidth: 1,
- height: 72,
+ height: 94,
padding: 16,
- flexDirection: 'row',
justifyContent: 'space-between',
},
modal: {

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 5:01 AM (18 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2683585
Default Alt Text
D6209.id20968.diff (2 KB)

Event Timeline