Fix visibility icon on password page

Fix popup buttons and description overflow
This commit is contained in:
morethanwords 2020-10-31 18:09:19 +02:00
parent 3f3dcdb821
commit a1c512a96b
5 changed files with 16 additions and 2 deletions

View File

@ -95,7 +95,7 @@
<div class="input-field"> <div class="input-field">
<input type="password" name="password" id="password" autocomplete="off" required /> <input type="password" name="password" id="password" autocomplete="off" required />
<label for="password">Password</label> <label for="password">Password</label>
<span class="toggle-visible tgico-eye1"></span> <span class="toggle-visible tgico"></span>
</div> </div>
<button class="btn-primary rp">NEXT</button> <button class="btn-primary rp">NEXT</button>
</div> </div>

View File

@ -57,7 +57,7 @@ let onFirstMount = (): Promise<any> => {
cancelEvent(e); cancelEvent(e);
passwordVisible = !passwordVisible; passwordVisible = !passwordVisible;
this.classList.toggle('tgico-eye2', passwordVisible); this.classList.toggle('eye-hidden', passwordVisible);
if(passwordVisible) { if(passwordVisible) {
passwordInput.setAttribute('type', 'text'); passwordInput.setAttribute('type', 'text');
animation.setDirection(1); animation.setDirection(1);

View File

@ -29,6 +29,14 @@
cursor: pointer; cursor: pointer;
transition: .2s; transition: .2s;
padding: .5rem; padding: .5rem;
&:before {
content: $tgico-eye1;
}
&.eye-hidden:before {
content: $tgico-eye2;
}
html.no-touch &:hover { html.no-touch &:hover {
color: #000; color: #000;

View File

@ -27,6 +27,9 @@
margin-bottom: 1.625rem; margin-bottom: 1.625rem;
min-width: 15rem; min-width: 15rem;
max-width: fit-content; max-width: fit-content;
text-overflow: ellipsis;
overflow: hidden;
word-break: break-word;
} }
&-buttons { &-buttons {

View File

@ -100,6 +100,9 @@
color: $color-blue; color: $color-blue;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
max-width: 100%;
white-space: nowrap;
text-overflow: ellipsis;
html.no-touch &:hover { html.no-touch &:hover {
background-color: var(--color-gray-hover); background-color: var(--color-gray-hover);