1
0
Fork 0

Fix password input in edit user

This commit is contained in:
Chocobozzz 2020-12-15 09:32:55 +01:00
parent c9bc850e93
commit d89fcd1e5e
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
4 changed files with 19 additions and 4 deletions

View File

@ -122,9 +122,11 @@
</ng-container>
</ng-template>
</my-help>
<my-input-toggle-hidden formControlName="password" id="password"
[ngClass]="{ 'input-error': formErrors['password'] }"
autocomplete="new-password"></my-input-toggle-hidden>
<my-input-toggle-hidden
formControlName="password" id="password" [ngClass]="{ 'input-error': formErrors['password'] }" autocomplete="new-password"
></my-input-toggle-hidden>
<div *ngIf="formErrors.password" class="form-error">
{{ formErrors.password }}
</div>

View File

@ -19,6 +19,12 @@ input:not([type=submit]) {
display: block;
}
my-input-toggle-hidden {
@include responsive-width(340px);
display: block;
}
.peertube-select-container {
@include peertube-select-container(340px);
}

View File

@ -9,7 +9,7 @@ import { environment } from '../../../environments/environment'
@Injectable()
export class InstanceFollowService {
private static BASE_APPLICATION_URL = 'https://peertube2.cpy.re' + '/api/v1/server'
private static BASE_APPLICATION_URL = environment.production + '/api/v1/server'
constructor (
private authHttp: HttpClient,

View File

@ -305,6 +305,13 @@
z-index: 100;
}
@mixin responsive-width ($width) {
width: $width;
@media screen and (max-width: $width) {
width: 100%;
}
}
@mixin ng-select ($width) {
::ng-deep &.ng-select,