aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/shared/shared-forms/preview-upload.component.html
blob: 8a10a11b039295a67ae84aa06b60279801df04a1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                 
                                                                                                                                               
                                                                                                        

                        
                                                                                                                                               

                                                                                                                     
      
<div class="root">
  <div class="preview-container">
    <my-reactive-file
      [inputName]="inputName" [inputLabel]="inputLabel" [extensions]="videoImageExtensions" [maxFileSize]="maxVideoImageSize" placement="right"
      icon="edit" (fileChanged)="onFileChanged($event)" [buttonTooltip]="getReactiveFileButtonTooltip()"
    ></my-reactive-file>

    <img *ngIf="imageSrc" [ngStyle]="{ width: previewWidth, height: previewHeight }" [src]="imageSrc" class="preview" alt="Preview" i18n-alt />
    <div *ngIf="!imageSrc" [ngStyle]="{ width: previewWidth, height: previewHeight }" class="preview no-image"></div>
  </div>
</div>