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

Fix longtext appearance for avatar popover menu #1675

Merged
merged 1 commit into from
Jan 20, 2021

Conversation

PVince81
Copy link
Contributor

Use longtext with the avatar menu as it will mostly contain user names
and email addresses which can become long.

The longtext mode automatically triggers wrapping by default.
However, in the case of long email addresses we can't wrap on spaces, so
an ellipsis has been added as well.

(note, there is no white-space mode that can break in the middle of a string, so this is the best we got)

image

For nextcloud/spreed#4976 (comment)

Use longtext with the avatar menu as it will mostly contain user names
and email addresses which can become long.

The longtext mode automatically triggers wrapping by default.
However, in the case of long email addresses we can't wrap on spaces, so
an ellipsis has been added as well.

Signed-off-by: Vincent Petry <[email protected]>
@violoncelloCH
Copy link
Contributor

(note, there is no white-space mode that can break in the middle of a string, so this is the best we got)

maybe word-break: break-all; could do the trick for that one?

@PVince81
Copy link
Contributor Author

(note, there is no white-space mode that can break in the middle of a string, so this is the best we got)

maybe word-break: break-all; could do the trick for that one?

while it works for the email address, it breaks the other items in an unwanted way:
image

and at this level of the code we can't know what the contents of the menu items is about as it's returned by the server in a generic manner

@PVince81 PVince81 merged commit b44769b into master Jan 20, 2021
@PVince81 PVince81 deleted the bugfix/noid/popovermenu-fix-longtext branch January 20, 2021 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants