[HOLD for payment 2022-01-27] Web - Group chat contacts are not showing ellipsis - Reported by @Tushu17
If you havenβt already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
- open app
- Create group with multiple contacts
- check LHN for display
Expected Result:
Ellipsis should display if contacts are not fitting
Actual Result:
Group chat contacts are not showing ellipsis on Web
Workaround:
Unknown
Platform:
Where is this issue occurring?
- Web
Version Number: 1.1.23-0
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL: Issue reported by: @Tushu17 Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1640035419420700
Triggered auto assignment to @greg-schroeder (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.
Triggered auto assignment to @luacmartins (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
I believe this was introduced when we updated react-native-web in this PR https://github.com/Expensify/App/pull/6738. cc @azimgd
Triggered auto assignment to @laurenreidexpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
This can be worked externally. Applied the labels. Unassigning myself.
Related discussion here https://expensify.slack.com/archives/C01GTK53T8Q/p1640809897239200?thread_ts=1640704361.161500&cid=C01GTK53T8Q
For whomever works on this issue, please also check that the ellipsis are showing properly in Search in Right Hand Nav (RHN) too.
The ellipsis is not working well because of the white-space: nowrap applied here:
https://github.com/Expensify/App/blob/894231476c5d3a5d8d17af30b1d4b641ec11e504/src/styles/styles.js#L1092-L1097
https://user-images.githubusercontent.com/47149004/147717963-023a0d2d-c8f3-42be-bee0-0fc0a808ff7a.mov
Proposal
Remove this line of code: https://github.com/Expensify/App/blob/894231476c5d3a5d8d17af30b1d4b641ec11e504/src/styles/styles.js#L1096
This will not affect native because the style whiteSpace.noWrap is already empty for those platforms, see https://github.com/Expensify/App/blob/main/src/styles/utilities/whiteSpace/index.native.js
https://www.upwork.com/jobs/~01cfaafbf8184740e9
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (Exported)
Triggered auto assignment to @Beamanator (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
@CamilaRivera 's proposal seems simple enough and looks effective, what do you think @parasharrajat ?
Yup, I agree. It looks good. I don't think it will have any side effects. But I would like to see these to be tested in PR.
- Search page.
- Single User Chat In LHN.
- Group title not reaching the sidebar boundary.
:ribbon: :eyes: :ribbon:
Agreed! @CamilaRivera would you mind checking that your proposal doesn't cause any side-effects on the pages mentioned ^ (above)?
Triggered auto assignment to @mallenexpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
@mallenexpensify am OOO next week, reassigning thanks
Yup, I agree. It looks good. I don't think it will have any side effects. But I would like to see these to be tested in PR.
- Search page.
- Single User Chat In LHN.
- Group title not reaching the sidebar boundary.
π π π
Hey @parasharrajat, so with my proposal it looks like this screenshot. I'm not so sure how to test case 3 "Group title not reaching the sidebar boundary".

Ok. I think it's fine. I will test it on PR.
So... as @parasharrajat pointed out here, my first proposal of removing white-space: nowrap breaks the the tooltip positioning.
Doing some more testing, I found another way of fixing it.
Proposal 2
Add display: inline-block and white-space: nowrap to this component:
https://github.com/Expensify/App/blob/615f5b3ff21cbdcf83ef2a050c875de2a0dbfb26/src/components/DisplayNames/index.js#L86-L91
changing the style to:
style={[...this.props.textStyles, styles.pRelative, {display: 'inline-block'}, styles.noWrap]}
Result: the tooltip is now correctly placed

Optionally, we can remove the nowrap from here because the proposed change already applies to the same component only on web.
Closed previous PR and created new now in case you want to test the second proposal: https://github.com/Expensify/App/pull/6972
π£ @CamilaRivera You have been assigned to this job by @Beamanator! Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π