Skip to content

Commit

Permalink
Merge pull request #17464 from PrashantMangukiya/prashant-17424
Browse files Browse the repository at this point in the history
Composer field left border extend vertically as it expand and collapse
  • Loading branch information
aldo-expensify authored Apr 17, 2023
2 parents c792447 + d64002c commit cbb22d4
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions src/pages/home/report/ReportActionCompose/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,7 @@ class ReportActionCompose extends React.Component {
<View style={[
styles.dFlex, styles.flexColumn,
(this.state.isFullComposerAvailable || this.props.isComposerFullSize) ? styles.justifyContentBetween : styles.justifyContentEnd,
styles.chatItemAttachBorder,
]}
>
{this.props.isComposerFullSize && (
Expand Down Expand Up @@ -814,22 +815,20 @@ class ReportActionCompose extends React.Component {
</Tooltip>
)}
<Tooltip text={this.props.translate('reportActionCompose.addAction')}>
<View style={styles.chatItemAttachBorder}>
<TouchableOpacity
ref={el => this.actionButton = el}
onPress={(e) => {
e.preventDefault();

// Drop focus to avoid blue focus ring.
this.actionButton.blur();
this.setMenuVisibility(true);
}}
style={styles.composerSizeButton}
disabled={isBlockedFromConcierge || this.props.disabled}
>
<Icon src={Expensicons.Plus} />
</TouchableOpacity>
</View>
<TouchableOpacity
ref={el => this.actionButton = el}
onPress={(e) => {
e.preventDefault();

// Drop focus to avoid blue focus ring.
this.actionButton.blur();
this.setMenuVisibility(true);
}}
style={styles.composerSizeButton}
disabled={isBlockedFromConcierge || this.props.disabled}
>
<Icon src={Expensicons.Plus} />
</TouchableOpacity>
</Tooltip>
</View>
<PopoverMenu
Expand Down

0 comments on commit cbb22d4

Please sign in to comment.