Skip to content

Commit

Permalink
v.9.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Vuqar committed Feb 24, 2020
1 parent 6a90f95 commit 495b532
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion projects/file-picker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-awesome-uploader",
"version": "9.0.0",
"version": "9.0.1",
"description": "Angular Library for uploading files with Real-Time Progress bar, File Preview, Drag && Drop and Custom Template with Multi Language support",
"peerDependencies": {
"@angular/common": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<ng-container *ngIf="!itemTemplate">
<div class="file-preview-wrapper" *ngIf="fileItem">
<div class="file-preview-wrapper" *ngIf="fileItem" [ngClass] = "{'visually-hidden': itemTemplate}">


<div class="file-preview-thumbnail">
Expand Down Expand Up @@ -51,7 +50,5 @@
</ng-container>

</div>
</ng-container>


<ng-container *ngTemplateOutlet="itemTemplate;context: {fileItem: fileItem, uploadProgress: uploadProgress}" > </ng-container>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@
max-width: 440px;
position: relative;
}

.visually-hidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;

// Avoid browsers rendering the focus ring in some cases.
outline: 0;

// Avoid some cases where the browser will still render the native controls (see #9049).
-webkit-appearance: none;
-moz-appearance: none;
}

.file-preview-wrapper {
display: flex;
width: 100%;
Expand Down
1 change: 1 addition & 0 deletions src/app/demo-file-picker/demo-file-picker.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
[accept]="'image/*'"
[captions]="captions"
(fileAdded)="onFileAdded($event)"
[itemTemplate]="itemTemplate"
>
<!-- <div class="dropzoneTemplate">
<button>Custom</button>
Expand Down

0 comments on commit 495b532

Please sign in to comment.