-
Notifications
You must be signed in to change notification settings - Fork 15
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
Long email addresses cause incorrect formatting of the left sidebar change history - resolved #254
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise, LTGM and tested
.user-id { | ||
width: 140px; /* Set the desired width */ | ||
overflow: auto; /* Hide overflowing content */ | ||
text-overflow: ellipsis; /* Display ellipsis (...) for overflow */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have overworked the "UX concept" - now the email address gets copied and the log service shows a toast to inform you that the email address was copied. The copied function is as well active, when user clicks on the comments.
...ariant/variant-view/variant-history/version-entry-layout/version-entry-layout.component.scss
Outdated
Show resolved
Hide resolved
...ariant/variant-view/variant-history/version-entry-layout/version-entry-layout.component.scss
Outdated
Show resolved
Hide resolved
…netzgrafik-editor-frontend into 243-bug-long-email-addresses-cause-incorrect-formatting-of-the-left-sidebar-change-history
…ows a toast to inform the user that the email address was copied.
…netzgrafik-editor-frontend into 243-bug-long-email-addresses-cause-incorrect-formatting-of-the-left-sidebar-change-history
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and working very well
navigator.clipboard.writeText(userId); | ||
const msg = $localize`:@@app.view.variant.variant-view.variant-history.version-entry-layout.user-id-copied:copied ${userId}:msg:`; | ||
this.logService.info(msg); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change: use await navigator.clipboard.writeText()
to only show the info message once the text has successfully been copied to the clipboard. (In some cases it can take a while or fail.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from this looks good!
Description
before
after fix
The user can scroll by selecting to copy the email address.
Checklist
documentation/