Fix help transcoding placement
authorChocobozzz <me@florianbigard.com>
Mon, 29 Jul 2019 14:41:25 +0000 (16:41 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 29 Jul 2019 14:41:25 +0000 (16:41 +0200)
client/src/app/shared/forms/peertube-checkbox.component.html
client/src/app/shared/forms/peertube-checkbox.component.ts
client/src/app/videos/+video-edit/shared/video-edit.component.html

index 7b8bcf60170b3e529ad37a0cfbd91e6a754af51f..571a1a673d75484591c8880ebc116315130b59a0 100644 (file)
@@ -6,5 +6,5 @@
     <span *ngIf="labelHtml" [innerHTML]="labelHtml"></span>
   </label>
 
-  <my-help *ngIf="helpHtml" tooltipPlacement="top" helpType="custom" i18n-customHtml [customHtml]="helpHtml"></my-help>
+  <my-help *ngIf="helpHtml" [tooltipPlacement]="helpPlacement" helpType="custom" i18n-customHtml [customHtml]="helpHtml"></my-help>
 </div>
index 9578f56186a1df4b3d96d6cae9c650da8d57043d..a4b72aa37ad0c3c50bb521db0e8076f49c5e7b8f 100644 (file)
@@ -19,6 +19,7 @@ export class PeertubeCheckboxComponent implements ControlValueAccessor {
   @Input() labelText: string
   @Input() labelHtml: string
   @Input() helpHtml: string
+  @Input() helpPlacement = 'top'
   @Input() disabled = false
 
   // FIXME: https://github.com/angular/angular/issues/10816#issuecomment-307567836
index 28572d611e42a61278462c26d5f0b6287e9ebda7..217cadc663461a065ac1c679d08786d6aa183e0a 100644 (file)
               inputName="nsfw" formControlName="nsfw"
               i18n-labelText labelText="This video contains mature or explicit content"
               i18n-helpHtml helpHtml="Some instances do not list videos containing mature or explicit content by default."
+              helpPlacement="bottom-right"
             ></my-peertube-checkbox>
 
             <my-peertube-checkbox
               inputName="waitTranscoding" formControlName="waitTranscoding"
               i18n-labelText labelText="Wait transcoding before publishing the video"
               i18n-helpHtml helpHtml="If you decide not to wait for transcoding before publishing the video, it could be unplayable until transcoding ends."
+              helpPlacement="bottom-right"
             ></my-peertube-checkbox>
 
           </div>