Add tooltip on caption upload to specify which formats are supported
authorRigel Kent <sendmemail@rigelk.eu>
Sat, 18 Apr 2020 07:55:38 +0000 (09:55 +0200)
committerRigel Kent <par@rigelk.eu>
Fri, 1 May 2020 14:41:02 +0000 (16:41 +0200)
client/src/app/videos/+video-edit/shared/video-caption-add-modal.component.html
client/src/app/videos/+video-edit/shared/video-caption-add-modal.component.scss

index ada32e3fd1f4c0b4d34d16cba621814662f43fae..6a9e31b5ac1282b2a0e907b34e766a49068bee68 100644 (file)
@@ -23,6 +23,7 @@
         <my-reactive-file
           formControlName="captionfile" inputName="captionfile" i18n-inputLabel inputLabel="Select the caption file"
           [extensions]="videoCaptionExtensions" [maxFileSize]="videoCaptionMaxSize" [displayFilename]="true"
+          i18n-ngbTooltip [ngbTooltip]="'(extensions: ' + videoCaptionExtensions.join(', ') + ')'"
         ></my-reactive-file>
       </div>
 
index c6da1877e7ad488f1fbeac776f26b749f01344a9..b257a16a94025f4afe5b10247c78659d179d6cbe 100644 (file)
@@ -7,6 +7,11 @@
 
 .caption-file {
   margin-top: 20px;
+  width: max-content;
+
+  ::ng-deep .root {
+    width: max-content;
+  }
 }
 
 .warning-replace-caption {