Add new vertical line separator instead of borderRight#18022
Conversation
|
@puneetlath @s77rt One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Hi @narefyev91 👋 Can we please have an update here? I see the PR is marked as draft now. I noticed the separator looks a little different especially since it's surrounded by the outside border, they look mismatched. Is this put on hold for that matter or something else? Let me know what should be done to move this forward |
Hey - based on internal process my changes should be checked by our QA first - and after approval i can mark PR as ready to review. |
|
@s77rt I do not know why no one raise this before - but this is what i see on main branch on my emulator (mWeb for android) - not sure if it happens only for me. Border top overlaps borderRight - and this is seems a new issue |
|
@narefyev91 If the issue exists on main then it's technically out of the scope of this PR. I'm not referring to that, I'm referring to the change on width. Open two tabs staging and localhost and notice the diff. On localhost (dev) the separator looks a littler thicker. |
LOL - maybe some visual effects? |
|
The problems that originate from 1px are really one of a kind 😅. This is one may be related to browser optimisation. Can you please check how can we make it look as before? |
Maybe we can try some platform separation ? |
|
I would really prefer not to go that way |
Agree ! Seems our case https://stackoverflow.com/questions/42710882/css-border-1px-appear-as-0-667px-or-1px-depending-on-the-computer-display-res. I will try some workaround to make browser working consistently |
|
@s77rt i added border-box item, and i could not really see a difference on mac safari, chrome, firefox browsers. |
|
@narefyev91 box-sizing: border-box is already the default. I still see the diff. |
Can you maybe post in which browser and machine you see the diff? |
|
Chrome on Linux |
| @s77rt seems width will not work also - based on discovering later at nigh - browser will still making calculation based on monitor size - and will apply different border width - while width itself will be the same. That's why you can see that difference on your machine. I came up with other idea. Attachment button - in which we initially have issue - is not a wrong place - it doesn't create an issue. The bad place - right area in which we have input, which taken some border space from other View. What if we remove border from attachment (as we discussed earlier) and apply border to View in which right section is presented? Now the View in which right section presented will push textinput to right (without overlapping) and we remove 1px from left - which will not make any impact on element positions. And in all platforms we will not see any differences Some result from devices |
|
What a solution! 😂 Given that this is an equally valid solution I'm okay with that. But let's keep the border in a class so just rename chatItemAttachBorder to something fitting and use on in text input instead of attachment button. |
Yup - sorry that didn't get to this idea initially.... |
|
@narefyev91 Please tag me again once this is ready for review |
|
RETESTS SUMMARY This fix is verified on Branch PR Draft narefyev91:add-new-separator-for-action-composer Tests are conducted on the following devices: The above tests are executed with a 100% pass value |
|
@s77rt ready for review |
Reviewer Checklist
Screenshots/Videos |
|
@narefyev91 Can you please update the tests to:
and tag me again |
@s77rt done |
|
@narefyev91 Thank you! |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/puneetlath in version: 1.3.9-12 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.12-0 🚀
|





















Details
Remove blurry border right - which were overlapped by Composer TextInput
Fixed Issues
$ #16848
$ #16848 (comment)
Tests
Offline tests
Same as above
QA Steps
Same as above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android