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 #942 - Truncate Alias Label #978

Merged
merged 4 commits into from
Aug 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions static/scss/partials/dashboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,14 @@

.c-alias-name {
margin-left: $spacing-xs;
width: 100%;
overflow: hidden;
max-width: 100%;
height: 100%;
flex-wrap: nowrap;
width: $content-sm;

.additional-notes, .relay-address {
text-overflow: ellipsis;
}

.relay-address {
display: none;
Expand All @@ -211,6 +216,8 @@

input {
text-overflow: ellipsis;
width: inherit;
max-width: 100%;
}

@media #{$mq-md} {
Expand Down
9 changes: 3 additions & 6 deletions static/scss/partials/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -946,11 +946,11 @@ input.relay-email-address-label {
transition: all .2s ease;
// Reset styles from protocol
background-color: none;
min-width: 0;
border-radius: 0;
border: 0;
margin: 0;
list-style: inherit;
min-width: 0;
}

.additional-notes {
Expand All @@ -960,6 +960,7 @@ input.relay-email-address-label {
pointer-events: none;
margin: auto auto 0 0;
display: none;
width: 100%;
}

.legacy-addon-show-label {
Expand All @@ -983,6 +984,7 @@ input::placeholder,
.relay-email-address-label:placeholder-shown {
color: $color-grey-50;
opacity: 1;
width: 192px;
}

input:focus::placeholder {
Expand Down Expand Up @@ -1029,11 +1031,6 @@ input:focus::placeholder {
outline: none;
}

.relay-email-address-label:focus,
input.input-has-error {
width: 200px !important;
}

.saved-confirmation {
content: "Saved!";
background-color: green;
Expand Down