Fix plugin checkbox placement

pull/3747/head
Chocobozzz 2021-04-09 14:02:27 +02:00
parent 3c47fa3bc0
commit 023edc8a54
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 12 additions and 8 deletions

View File

@ -1,5 +1,12 @@
<div [formGroup]="form">
<label *ngIf="setting.label" [attr.for]="setting.name" [innerHTML]="setting.label"></label>
<label *ngIf="setting.label && setting.type !== 'input-checkbox'" [attr.for]="setting.name" [innerHTML]="setting.label"></label>
<my-peertube-checkbox
*ngIf="setting.type === 'input-checkbox'"
[inputName]="setting.name"
[formControlName]="setting.name"
[labelInnerHTML]="setting.label"
></my-peertube-checkbox>
<div *ngIf="setting.descriptionHTML" class="label-small-info" [innerHTML]="setting.descriptionHTML"></div>
@ -31,13 +38,6 @@
[classes]="{ 'input-error': formErrors['settings.name'] }"
></my-markdown-textarea>
<my-peertube-checkbox
*ngIf="setting.type === 'input-checkbox'"
[inputName]="setting.name"
[formControlName]="setting.name"
[labelInnerHTML]="setting.label"
></my-peertube-checkbox>
<div *ngIf="setting.type === 'html'" [innerHTML]="setting.html"></div>
<div *ngIf="formErrors[setting.name]" class="form-error">

View File

@ -22,3 +22,7 @@ textarea {
margin-bottom: 10px;
font-size: 13px;
}
my-peertube-checkbox + .label-small-info {
margin-top: 5px;
}