-
Notifications
You must be signed in to change notification settings - Fork 3k
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 – Edited text is out of the frame #32846
Comments
Job added to Upwork: https://www.upwork.com/jobs/~0114350bc651a8e598 |
Triggered auto assignment to @laurenreidexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @cubuspl42 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat – Edited text is out of the frame What is the root cause of that problem?The main problem is that when we add a new line, the padding we use above and below the input is ignored Lines 897 to 913 in d8f3268
As a result, scroll is focused at the bottom of the text What changes do you think we should make in order to solve the problem?I think that in this case we should not use padding, and instead we can use margin, so that the indentation we use at the bottom is more obvious So we can update this function like (I kept the padding as it is part of other fixes (But more testing is needed here to make sure that the margin is suitable for previous fixes)) :
Screen.Recording.2023-12-11.at.20.03.44.movWhat alternative solutions did you explore? (Optional)We can update this part of the code to remove the influence of padding on scrolling
Lines 909 to 912 in d8f3268
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The problem is that when we write new lines the padding on the bottom is no longer visible, the text "exits" its frame. What is the root cause of that problem?So if we pay close attention, in the first few lines this problem is not happening, but after we add multiple lines so that the input has a scrollbar, we can see that we are not scrolled fully to the bottom of the input. We are just in the vision of the cursor, but we can scroll down a couple of pixels. What changes do you think we should make in order to solve the problem?We just need to scroll all the way down whenever we are writing on the end of the text (when our cursor is at the end). Screen.Recording.2023-12-11.at.22.29.35.movWhat alternative solutions did you explore? (Optional)Alternatively we can check if we are on the last line of the input (not just at the last character).
|
📣 @botosdavid! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
This comment was marked as outdated.
This comment was marked as outdated.
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@cubuspl42 bump for review ^^ thanks |
Unfortunately, this testing should be a part of a work on a proposal. You correctly observed that the code is crafted to solve a different issue, and it's especially easy to introduce a regression in such cases. We have to be confident that the proposal both solves our current issue and doesn't introduce regressions. Are you suggesting any code changes in your "What changes do you think we should make in order to solve the problem?" section? Have you tested this change on Chrome and Safari, both desktop and mobile? |
Therefore, in the proposal I did not touch this part of the code And I add an alternative proposal which will work too |
Yes, I placed the code snippet in the alternative solutions section by mistake, but I was suggesting something like that to scroll down when needed, as the padding is there already, but only not visible because we are not scrolled down fully. |
Testing on other platforms ASAP |
The scroll-padding: 10px; is working only on Chrome. I think this is not a bug, below the same in other websites using textarea. ==> Image from the video by kbecciv ==> screenshot from Mozilla web docs ==> screenshot from W3Schools |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@cubuspl42, @laurenreidexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Waiting for proposals |
@ZhenjaHorbach @dragnoir Please update the proposals so they represent the best, most actionable ideas of yours @ZhenjaHorbach I'm confused about whether you consider your primary or alternative ideas more preferable. It might be partially a linguistic issue. Sometimes I'm not sure what you mean. @dragnoir So is your proposal now outdated, as it doesn't work on Safari? |
@cubuspl42 if you can check the same flow on other websites, I can see the exact bahavior (near frame text). You can zoom the browser to see the small details. I assume it's not a bug. Note: the video posted by the reporter, does not show out of the frame text, just no space between text and the frame. |
In the case of frontend Web apps, it's an everyday reality that some problems are considered a bugs even when they come from an issue in the browsers, a specific browser, or sometimes even the standard itself. Sometimes there are reasonable workarounds. Still, in this case, the impact seems to be quite small and all proposals so far have some gotchas. So I would agree to close this one. @laurenreidexpensify Would you agree? |
@cubuspl42 @laurenreidexpensify 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! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@cubuspl42, @laurenreidexpensify Eep! 4 days overdue now. Issues have feelings too... |
@cubuspl42, @laurenreidexpensify Still overdue 6 days?! Let's take care of this! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.11-1
Reproducible in staging?: y
Reproducible in production?: y
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
Edited text is not out of the frame
Actual Result:
Edited text is out of the frame
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6309352_1702315424559.Edited_text_is_out_of_the_frame.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: