Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3499109
D6209.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D6209.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 10:35 PM (18 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2683585
Default Alt Text
D6209.diff (2 KB)
Attached To
Mode
D6209: Add parent name to subchannels and sidebars modals
Attached
Detach File
Event Timeline
Log In to Comment