Skip to content

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.

5 participants