Fix file grid being wider than 100%
Signed-off-by: trivernis <trivernis@protonmail.com>pull/4/head
parent
0d8c971056
commit
942650407e
@ -1,6 +1,6 @@
|
||||
<div #imageContainer class="image-container">
|
||||
<img #image [src]="this.imageSrc" alt="" (load)="this.adjustSize(image, imageContainer)"
|
||||
(window:resize)="this.adjustSize(image, imageContainer)"
|
||||
[class.scale-width]="scaleWidth" [class.scale-height]="!scaleWidth"
|
||||
[class.scale-width]="scaleWidth && maximizeWidth" [class.scale-height]="(!scaleWidth) && maximizeHeight"
|
||||
decoding="async">
|
||||
</div>
|
||||
|
@ -1,8 +1,11 @@
|
||||
<cdk-virtual-scroll-viewport #virtualScrollGrid class="file-scroll" maxBufferPx="500" minBufferPx="500" itemSize="250">
|
||||
<div *cdkVirtualFor="let rowEntry of partitionedGridEntries">
|
||||
<div class="file-row">
|
||||
<app-file-grid-entry (clickEvent)="setSelectedFile($event.gridEntry)" (dblClickEvent)="fileDblClickEvent.emit($event.gridEntry.file)"
|
||||
*ngFor="let gridEntry of rowEntry" [gridEntry]="gridEntry"></app-file-grid-entry>
|
||||
<div class="file-gallery-inner">
|
||||
<cdk-virtual-scroll-viewport #virtualScrollGrid class="file-scroll" maxBufferPx="500" minBufferPx="500" itemSize="250">
|
||||
<div *cdkVirtualFor="let rowEntry of partitionedGridEntries">
|
||||
<div class="file-row">
|
||||
<app-file-grid-entry (clickEvent)="setSelectedFile($event.gridEntry)" (dblClickEvent)="fileDblClickEvent.emit($event.gridEntry.file)"
|
||||
*ngFor="let gridEntry of rowEntry" [gridEntry]="gridEntry"></app-file-grid-entry>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</cdk-virtual-scroll-viewport>
|
||||
</cdk-virtual-scroll-viewport>
|
||||
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue