aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-04-18 09:55:38 +0200
committerRigel Kent <par@rigelk.eu>2020-05-01 16:41:02 +0200
commit36d0677ec95605eca0543712686c591fb8e6f3c1 (patch)
tree8f1f0da3d085d4a1f6e2cf27d6b6c8dbb2288bd4
parent988af781ac63e791edd7d62ceddf1f06bfb9e275 (diff)
downloadPeerTube-36d0677ec95605eca0543712686c591fb8e6f3c1.tar.gz
PeerTube-36d0677ec95605eca0543712686c591fb8e6f3c1.tar.zst
PeerTube-36d0677ec95605eca0543712686c591fb8e6f3c1.zip
Add tooltip on caption upload to specify which formats are supported
-rw-r--r--client/src/app/videos/+video-edit/shared/video-caption-add-modal.component.html1
-rw-r--r--client/src/app/videos/+video-edit/shared/video-caption-add-modal.component.scss5
2 files changed, 6 insertions, 0 deletions
diff --git a/client/src/app/videos/+video-edit/shared/video-caption-add-modal.component.html b/client/src/app/videos/+video-edit/shared/video-caption-add-modal.component.html
index ada32e3fd..6a9e31b5a 100644
--- a/client/src/app/videos/+video-edit/shared/video-caption-add-modal.component.html
+++ b/client/src/app/videos/+video-edit/shared/video-caption-add-modal.component.html
@@ -23,6 +23,7 @@
23 <my-reactive-file 23 <my-reactive-file
24 formControlName="captionfile" inputName="captionfile" i18n-inputLabel inputLabel="Select the caption file" 24 formControlName="captionfile" inputName="captionfile" i18n-inputLabel inputLabel="Select the caption file"
25 [extensions]="videoCaptionExtensions" [maxFileSize]="videoCaptionMaxSize" [displayFilename]="true" 25 [extensions]="videoCaptionExtensions" [maxFileSize]="videoCaptionMaxSize" [displayFilename]="true"
26 i18n-ngbTooltip [ngbTooltip]="'(extensions: ' + videoCaptionExtensions.join(', ') + ')'"
26 ></my-reactive-file> 27 ></my-reactive-file>
27 </div> 28 </div>
28 29
diff --git a/client/src/app/videos/+video-edit/shared/video-caption-add-modal.component.scss b/client/src/app/videos/+video-edit/shared/video-caption-add-modal.component.scss
index c6da1877e..b257a16a9 100644
--- a/client/src/app/videos/+video-edit/shared/video-caption-add-modal.component.scss
+++ b/client/src/app/videos/+video-edit/shared/video-caption-add-modal.component.scss
@@ -7,6 +7,11 @@
7 7
8.caption-file { 8.caption-file {
9 margin-top: 20px; 9 margin-top: 20px;
10 width: max-content;
11
12 ::ng-deep .root {
13 width: max-content;
14 }
10} 15}
11 16
12.warning-replace-caption { 17.warning-replace-caption {