-
Notifications
You must be signed in to change notification settings - Fork 366
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
Truncated long value names in confirmation window #8670
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
03bce52
Truncated long value names in confirmation window
Annaseli a97860f
Removed spaces so it will be formatted as in the master branch
Annaseli befd895
Removed space after the email
Annaseli 3850419
Positioned the question mark next to the email and ensured the email …
Annaseli a12b954
Removed the magic number 40
Annaseli 9e07145
Removed the space before the question mark
Annaseli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,19 +31,39 @@ const UserCredentialsList = ({ userId, after, onPaginate }) => { | |
}); | ||
}; | ||
const content = ( | ||
<> | ||
{createError && <AlertError error={createError}/>} | ||
<CredentialsTable | ||
userId={userId} | ||
currentAccessKey={(user) ? user.accessKeyId : ""} | ||
refresh={refresh} | ||
after={after} | ||
onPaginate={onPaginate} | ||
/> | ||
</> | ||
); | ||
<> | ||
{createError && <AlertError error={createError}/>} | ||
<CredentialsTable | ||
userId={userId} | ||
currentAccessKey={(user) ? user.accessKeyId : ""} | ||
refresh={refresh} | ||
after={after} | ||
onPaginate={onPaginate} | ||
/> | ||
</> | ||
); | ||
|
||
const getMsg = (email) => <span>Create new credentials for user <strong>{email}</strong>?</span>; | ||
const getMsg = (email) => ( | ||
<span> | ||
Create new credentials for user{" "} | ||
<br/> | ||
<strong | ||
className=" | ||
d-inline-block | ||
w-50 | ||
text-nowrap | ||
overflow-hidden | ||
text-truncate | ||
align-middle | ||
" | ||
title={email} | ||
> | ||
{email} | ||
</strong> | ||
<br/> | ||
{" "}? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nitpicking again: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You're right, it looks better without it :) |
||
</span> | ||
); | ||
return ( | ||
<> | ||
<UserHeaderWithContext userId={userId} page={'credentials'}/> | ||
|
@@ -99,4 +119,4 @@ const UserCredentialsPage = () => { | |
return <UserCredentialsContainer/>; | ||
}; | ||
|
||
export default UserCredentialsPage; | ||
export default UserCredentialsPage; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why the newline after the email?
I think it's better to have it on the same line...
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.
Yes, I was wondering about that. Okay, I'll move the question mark to the same line as the email.
A related question: In your opinion, what should the expected behavior be?
Currently, long emails wrap to a new line, while short emails remain on the same line. Guy thinks the behavior should be the same for short, long, and overly long (requiring truncation) emails in terms of the line on which they appear.
What do you think should be the standard behavior for all cases?
I believe it would be better if all emails—whether short, long, or too long (requiring truncation)—appear on a new line, with the question mark positioned next to them.
Currently, here's what happens:

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 think it should be the same - right after the email/name, with no newline.
Any good reasons for the newline?
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.
Instead of the previous behavior, where a short name like "admin" remained on the same line, while a long email moved to the next line.
short email/name:

long email/name:
