Skip to content
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

bug/1976 - display a shorter invite link on a mobile #1983

Merged
merged 3 commits into from
Oct 20, 2023
Merged

Conversation

Kacper-RF
Copy link
Contributor

@Kacper-RF Kacper-RF commented Oct 19, 2023

Pull Request Checklist

  • I have linked this PR to related GitHub issue.
  • I have updated the CHANGELOG.md file with relevant changes (the file is located at the root of monorepo).

(Optional) Mobile checklist

Please ensure you completed the following checks if you did any changes to the mobile package:

  • I have run e2e tests for mobile
  • I have updated base screenshots for visual regression tests

image

@EmiM
Copy link
Contributor

EmiM commented Oct 19, 2023

I'd add a visual regression test for that

@@ -82,7 +82,7 @@ export const InvitationContextMenu: FC = () => {
title={'Add members'}
items={items}
hint={'Anyone with Quiet app can follow this link to join this community. Only share with people you trust.'}
link={invitationLink}
link={invitationLink.slice(0, 35) + '...'}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we do it with css text-overflow: ellipsis?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work in React Native from what I can see, but I found an equivalent to this - numberOfLines={1}

@Kacper-RF Kacper-RF merged commit 100add9 into develop Oct 20, 2023
9 of 11 checks passed
@siepra siepra deleted the bug/1976 branch October 23, 2023 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants