-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[$500] Chat --Tapping expand button and then plus icon, the compose box becomes extra big #28201
Comments
Triggered auto assignment to @greg-schroeder ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~0170623ae497958496 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
Subject: Tapping expand button and then plus icon, the compose box becomes extra big. Issue OverviewCurrently, when a user clicks on the "stretch" button, it applies the CSS property Proposed SolutionThe proposed solution is to dynamically adjust the Implementation DetailsTo implement this solution, we can employ JavaScript to toggle the
This adjustment ensures that the chat area remains larger, while the text area remains smaller, creating a more consistent user experience. Expected Benefits
Additional Considerations
|
📣 @omergr8! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat --Tapping expand button and then plus icon, the compose box becomes extra big What is the root cause of that problem?When the input is set to full size the height of the footer input group will get 50% remaining height (exclude header) at App/src/pages/home/report/ReportFooter.js Line 80 in 13b2291
by styles.chatFooterFullCompose flex: 1 on mobile when the keyboard opens the height of the input group will reduce due to the total height being reduced What changes do you think we should make in order to solve the problem?Condition to check isMobile const isMobile = Browser.isMobile() || Platform.OS === 'ios' || Platform.OS === 'android'; On mobile the height of the screen is limited with the keyboard so we shouldn't support to expand full composer, we will hide the expand and collapse buttons at
update to {!isMobile && isComposerFullSize && (
....
)} and
update to {!isMobile && !isComposerFullSize && isFullComposerAvailable && (
....
)} Make an attachment button to center
update to <View style={[styles.dFlex, styles.flexColumn, !isMobile && isFullComposerAvailable || !isMobile && isComposerFullSize ? styles.justifyContentBetween : styles.justifyContentCenter]}> What alternative solutions did you explore? (Optional)We can config a height or maxHeight for the input group on mobile instead of setting App/src/pages/home/report/ReportFooter.js Line 80 in 13b2291
<View style={[chatFooterStyles, props.isComposerFullSize ? (isMobile ? styles.chatFooterFullComposeMobile : styles.chatFooterFullCompose) : undefined]}> add style chatFooterFullComposeMobile: {
height: 180, // 180-(7 lines) 200-(8 lines) or calculate any value based on team decision
}, |
awaiting proposal review |
@omergr8 please follow our proposal template here https://github.com/Expensify/App/blob/main/contributingGuides/PROPOSAL_TEMPLATE.md |
@greg-schroeder I traced back changelogs, we used to expand composer to full-screen last year #9031 #11608. But nowadays, It only occupies 50% of the screen height when the keyboard is hidden. I couldn't find when we changed from 100% to 50% screen in expand mode. So just wanna confirm the expected behavior here, in expand mode, will the composer occupy 100% or 50% or any percentage of screen height (or fixed height)? Thanks |
Proposal Please re-state the problem that we are trying to solve in this issue.Tapping expand button and then plus icon, the compose box becomes extra big. What is the root cause of that problem?The root cause of this problem is the conflicting flex properties applied to both sibling divs. This conflict causes them to share space equally, leading to the unintended resizing of the chat textarea. What changes do you think we should make in order to solve the problem?To address this issue, I propose dynamically adjusting the flex properties of the sibling divs when the textarea is expanded. Specifically, I suggest setting the chat area to occupy 70% of the available space, while the text area takes up the remaining 30%. This adjustment will ensure that the textarea's size remains consistent and does not unexpectedly change when the keyboard appears or disappears. What alternative solutions did you explore?In addition to the proposed solution that involves adjusting the flex properties of the sibling divs, we explored an alternative approach. Instead of relying on flex, an alternative solution would involve setting a fixed height or a maximum height (max-height) for the input group. This alternative approach simplifies the layout management by avoiding complex flex adjustments and may offer an effective way to address the issue. |
I have updated the screenshot result for my proposal @hoangzinh @greg-schroeder Could you please review my proposal? |
Thanks @suneox . I would like to wait for @greg-schroeder for the expectation here #28201 (comment) |
Looking |
@hoangzinh hmm. I see conflicting information about this as well. 🤔 |
pinging here to see if anyone can be a better sleuth: https://expensify.slack.com/archives/C01GTK53T8Q/p1696260318348419 |
from @puneetlath:
|
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@greg-schroeder actually, I think we're still fine with the current size of the composer when it's expanded. The compose box in the recording is not extra big, it's the current size of the composer when the keyboard is hidden. What do you think? |
@hoangzinh |
Because the composer is in the expand mode. Having extra space is expected behavior.
I just wanna confirm it's worth to fix this issue |
@hoangzinh, @greg-schroeder Huh... This is 4 days overdue. Who can take care of this? |
@hoangzinh @greg-schroeder this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
waiting on your input @greg-schroeder #28201 (comment) |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Sorry @hoangzinh been traveling/OOO |
Hmm. The fact that it's the same size as when the keyboard is hidden is compelling enough to me to say this isn't worth spending our focus on. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
When user taps expand button and taps plus icon near compose, the compose box must not become extra big
Actual Result:
When user taps expand button and taps plus icon near compose, the compose box becomes extra big
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.74-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug6214224_box_big.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: