Skip to content

Commit e08154f

Browse files
authored
make Carlton whole again and fix picker picture in search (#23622)
1 parent 249cfcb commit e08154f

3 files changed

Lines changed: 20 additions & 15 deletions

File tree

shared/chat/conversation/messages/react-button/emoji-picker/index.tsx

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -342,21 +342,25 @@ class EmojiPicker extends React.PureComponent<Props, State> {
342342
// so I'm not adding a ScrollView here. If we increase that later check
343343
// if this can sometimes overflow the screen here & add a ScrollView
344344
return (
345-
<Kb.Box2 direction="vertical" fullWidth={true} style={Styles.globalStyles.flexGrow}>
346-
<Kb.Box2 direction="horizontal" fullWidth={true} centerChildren={true} alignItems="flex-start">
347-
<Kb.Box2
348-
direction="horizontal"
349-
fullWidth={true}
350-
style={Styles.collapseStyles([styles.emojiRowContainer, styles.flexWrap])}
351-
>
352-
{this.getSectionHeader('Search results')}
353-
{results.map(e => this.getEmojiSingle(e, this.props.skinTone))}
354-
{[...Array(emojisPerLine - (results.length % emojisPerLine))].map((_, index) =>
355-
makeEmojiPlaceholder(index)
356-
)}
357-
</Kb.Box2>
345+
<Kb.Box2
346+
direction="horizontal"
347+
fullWidth={true}
348+
centerChildren={true}
349+
alignItems="flex-start"
350+
style={Styles.globalStyles.flexGrow}
351+
>
352+
<Kb.Box2
353+
direction="horizontal"
354+
fullWidth={true}
355+
style={Styles.collapseStyles([styles.emojiRowContainer, styles.flexWrap])}
356+
>
357+
{this.getSectionHeader('Search results')}
358+
{results.map(e => this.getEmojiSingle(e, this.props.skinTone))}
359+
{[...Array(emojisPerLine - (results.length % emojisPerLine))].map((_, index) =>
360+
makeEmojiPlaceholder(index)
361+
)}
362+
{this.makeNotFound()}
358363
</Kb.Box2>
359-
{this.makeNotFound()}
360364
</Kb.Box2>
361365
)
362366
}

shared/common-adapters/custom-emoji.native.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const CustomEmoji = (props: Props) => {
1515
direction="vertical"
1616
style={Styles.collapseStyles([dimensions, styles.container, !!props.addTopMargin && styles.topMargin])}
1717
>
18-
<FastImage source={{uri: src}} style={dimensions} />
18+
<FastImage source={{uri: src}} style={dimensions} resizeMode={FastImage.resizeMode.contain} />
1919
</Box2>
2020
)
2121
}

shared/common-adapters/native-image.native.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class FastImageImpl extends React.Component<
2222
ImageProps & {showLoadingStateUntilLoaded?: boolean},
2323
FastImageImplState
2424
> {
25+
static resizeMode = RNFI.resizeMode
2526
static getSize = Image.getSize
2627
state = {
2728
loading: true,

0 commit comments

Comments
 (0)