]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix ng select in admin
authorChocobozzz <me@florianbigard.com>
Tue, 15 Dec 2020 07:57:49 +0000 (08:57 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 15 Dec 2020 07:57:49 +0000 (08:57 +0100)
client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html
client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss

index e2f3a196e24864656b205f166d869ce39e57aa95..bba7365f67b179c12d43d4ab479939958d6cd13a 100644 (file)
                           </ng-container>
                         </my-peertube-checkbox>
                       </div>
                           </ng-container>
                         </my-peertube-checkbox>
                       </div>
-  
+
                       <div class="form-group" [ngClass]="{ 'disabled-checkbox-extra': !isTranscodingEnabled() }">
                         <my-peertube-checkbox
                           inputName="transcodingAllowAudioFiles" formControlName="allowAudioFiles"
                       <div class="form-group" [ngClass]="{ 'disabled-checkbox-extra': !isTranscodingEnabled() }">
                         <my-peertube-checkbox
                           inputName="transcodingAllowAudioFiles" formControlName="allowAudioFiles"
                             <ng-template ptTemplate="help">
                               <ng-container i18n>
                                 <p>If you also enabled HLS support, it will multiply videos storage by 2</p>
                             <ng-template ptTemplate="help">
                               <ng-container i18n>
                                 <p>If you also enabled HLS support, it will multiply videos storage by 2</p>
-      
+
                                 <br />
                                 <br />
-      
+
                                 <strong>If disabled, breaks federation with PeerTube instances < 2.1</strong>
                               </ng-container>
                             </ng-template>
                           </my-peertube-checkbox>
                         </div>
                       </ng-container>
                                 <strong>If disabled, breaks federation with PeerTube instances < 2.1</strong>
                               </ng-container>
                             </ng-template>
                           </my-peertube-checkbox>
                         </div>
                       </ng-container>
-      
+
                       <ng-container formGroupName="hls">
                         <div class="form-group" [ngClass]="{ 'disabled-checkbox-extra': !isTranscodingEnabled() }">
                           <my-peertube-checkbox
                       <ng-container formGroupName="hls">
                         <div class="form-group" [ngClass]="{ 'disabled-checkbox-extra': !isTranscodingEnabled() }">
                           <my-peertube-checkbox
                             <ng-template ptTemplate="help">
                               <ng-container i18n>
                                 <strong>Requires ffmpeg >= 4.1</strong>
                             <ng-template ptTemplate="help">
                               <ng-container i18n>
                                 <strong>Requires ffmpeg >= 4.1</strong>
-      
+
                                 <p>Generate HLS playlists and fragmented MP4 files resulting in a better playback than with plain WebTorrent:</p>
                                 <ul>
                                   <li>Resolution change is smoother</li>
                                   <li>Faster playback especially with long videos</li>
                                   <li>More stable playback (less bugs/infinite loading)</li>
                                 </ul>
                                 <p>Generate HLS playlists and fragmented MP4 files resulting in a better playback than with plain WebTorrent:</p>
                                 <ul>
                                   <li>Resolution change is smoother</li>
                                   <li>Faster playback especially with long videos</li>
                                   <li>More stable playback (less bugs/infinite loading)</li>
                                 </ul>
-      
+
                                 <p>If you also enabled WebTorrent support, it will multiply videos storage by 2</p>
                               </ng-container>
                             </ng-template>
                                 <p>If you also enabled WebTorrent support, it will multiply videos storage by 2</p>
                               </ng-container>
                             </ng-template>
 
                       <div class="form-group" [ngClass]="{ 'disabled-checkbox-extra': !isTranscodingEnabled() }">
                         <label i18n>Resolutions to generate per enabled format</label>
 
                       <div class="form-group" [ngClass]="{ 'disabled-checkbox-extra': !isTranscodingEnabled() }">
                         <label i18n>Resolutions to generate per enabled format</label>
-        
+
                         <div class="ml-2 mt-2 d-flex flex-column">
                           <ng-container formGroupName="resolutions">
                             <div class="form-group" *ngFor="let resolution of resolutions">
                         <div class="ml-2 mt-2 d-flex flex-column">
                           <ng-container formGroupName="resolutions">
                             <div class="form-group" *ngFor="let resolution of resolutions">
 
                     <div class="form-group" [ngClass]="{ 'disabled-checkbox-extra': !isLiveEnabled() }">
                       <label i18n for="liveMaxDuration">Max live duration</label>
 
                     <div class="form-group" [ngClass]="{ 'disabled-checkbox-extra': !isLiveEnabled() }">
                       <label i18n for="liveMaxDuration">Max live duration</label>
-                      <div class="peertube-select-container">
+                      <div>
                         <ng-select
                           labelForId="liveMaxDuration" [items]="liveMaxDurationOptions" formControlName="maxDuration"
                           bindLabel="label" bindValue="value"
                         <ng-select
                           labelForId="liveMaxDuration" [items]="liveMaxDurationOptions" formControlName="maxDuration"
                           bindLabel="label" bindValue="value"
index 6743879e78e0b5e03f1ce3526c024fbe2573825f..3d570f571c281108adb8b10e77b231d5414f3d83 100644 (file)
@@ -41,6 +41,10 @@ input[type=checkbox] {
   @include peertube-select-container($form-base-input-width);
 }
 
   @include peertube-select-container($form-base-input-width);
 }
 
+ng-select {
+  @include ng-select($form-base-input-width);
+}
+
 my-select-checkbox {
   @include ng-select($form-base-input-width);
 }
 my-select-checkbox {
   @include ng-select($form-base-input-width);
 }