Make post composer prompt look less like a search field

This commit is contained in:
Alex Benzer
2025-12-05 11:54:15 -08:00
parent ad60be6c31
commit 4c0fd25f78
2 changed files with 44 additions and 50 deletions
-1
View File
@@ -203,7 +203,6 @@ export type MetricEvents = {
'composer:gif:open': {}
'composer:gif:select': {}
'postComposer:click': {}
'composerPrompt:press': {}
'composerPrompt:camera:press': {}
'composerPrompt:gallery:press': {}
+44 -49
View File
@@ -171,65 +171,40 @@ export function ComposerPrompt() {
size={40}
type={profile.associated?.labeler ? 'labeler' : 'user'}
/>
<View style={[a.flex_1, a.ml_md, a.flex_row, a.align_center, a.gap_xs]}>
<View
<View
style={[
a.flex_1,
a.ml_md,
a.flex_row,
a.align_center,
a.justify_between,
{
height: 40,
},
]}>
<Text
style={[
a.flex_1,
a.flex_row,
a.align_center,
a.justify_between,
a.px_md,
a.rounded_full,
t.atoms.bg_contrast_50,
t.atoms.text_contrast_low,
a.text_md,
{
height: 40,
includeFontPadding: false,
},
]}>
<Text
style={[
t.atoms.text_contrast_low,
a.text_md,
a.pl_xs,
{
includeFontPadding: false,
},
]}>
{_(msg`What's up?`)}
</Text>
<View style={[a.flex_row, a.gap_md, a.mr_xs]}>
{isNative && (
<Button
onPress={e => {
e.stopPropagation()
onPressCamera()
}}
label={_(msg`Open camera`)}
accessibilityHint={_(msg`Opens device camera`)}
variant="ghost"
shape="round">
{({hovered}) => (
<CameraIcon
size="md"
style={{
color: hovered
? t.palette.primary_500
: t.palette.contrast_300,
}}
/>
)}
</Button>
)}
{_(msg`What's up?`)}
</Text>
<View style={[a.flex_row, a.gap_md]}>
{isNative && (
<Button
onPress={e => {
e.stopPropagation()
onPressImage()
onPressCamera()
}}
label={_(msg`Add image`)}
accessibilityHint={_(msg`Opens image picker`)}
label={_(msg`Open camera`)}
accessibilityHint={_(msg`Opens device camera`)}
variant="ghost"
shape="round">
{({hovered}) => (
<ImageIcon
<CameraIcon
size="md"
style={{
color: hovered
@@ -239,7 +214,27 @@ export function ComposerPrompt() {
/>
)}
</Button>
</View>
)}
<Button
onPress={e => {
e.stopPropagation()
onPressImage()
}}
label={_(msg`Add image`)}
accessibilityHint={_(msg`Opens image picker`)}
variant="ghost"
shape="round">
{({hovered}) => (
<ImageIcon
size="md"
style={{
color: hovered
? t.palette.primary_500
: t.palette.contrast_300,
}}
/>
)}
</Button>
</View>
</View>
</Pressable>