Skip to content

Commit 2c259f5

Browse files
rootroot
authored andcommitted
A new approach so that the elements of the ds-file-dropzone-no-uploader component don't overlap the navbar and make it inaccessible
1 parent 351abaa commit 2c259f5

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/app/shared/upload/file-dropzone-no-uploader/file-dropzone-no-uploader.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<div ng2FileDrop
2-
class="ds-document-drop-zone h-100 w-100"
2+
class="ds-document-drop-zone position-fixed h-100 w-100"
33
[class.ds-document-drop-zone-active]="(isOverDocumentDropZone | async)"
44
[uploader]="uploader"
55
(onFileDrop)="setFile($event)"
66
(fileOver)="fileOverDocument($event)">
77
</div>
88
<div *ngIf="(isOverDocumentDropZone | async)"
9-
class="ds-document-drop-zone-inner h-100 w-100 p-2">
9+
class="ds-document-drop-zone-inner position-fixed h-100 w-100 p-2">
1010
<div
1111
class="ds-document-drop-zone-inner-content position-relative d-flex flex-column justify-content-center text-center h-100 w-100">
1212
<p class="text-primary">{{ dropMessageLabel | translate}}</p>

src/app/shared/upload/file-dropzone-no-uploader/file-dropzone-no-uploader.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@
66
top: 0;
77
left: 0;
88
z-index: -1;
9+
display: block;
10+
opacity: 0;
11+
visibility: hidden;
12+
transition: opacity 0.3s ease, visibility 0.3s ease;
913
}
1014

1115
.ds-document-drop-zone-active {
1216
z-index: var(--ds-drop-zone-area-z-index) !important;
17+
opacity: 1;
18+
visibility: visible;
1319
}
1420

1521
.ds-document-drop-zone-inner {

0 commit comments

Comments
 (0)