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">
|
<div #imageContainer class="image-container">
|
||||||
<img #image [src]="this.imageSrc" alt="" (load)="this.adjustSize(image, imageContainer)"
|
<img #image [src]="this.imageSrc" alt="" (load)="this.adjustSize(image, imageContainer)"
|
||||||
(window:resize)="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">
|
decoding="async">
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
<cdk-virtual-scroll-viewport #virtualScrollGrid class="file-scroll" maxBufferPx="500" minBufferPx="500" itemSize="250">
|
<div class="file-gallery-inner">
|
||||||
<div *cdkVirtualFor="let rowEntry of partitionedGridEntries">
|
<cdk-virtual-scroll-viewport #virtualScrollGrid class="file-scroll" maxBufferPx="500" minBufferPx="500" itemSize="250">
|
||||||
<div class="file-row">
|
<div *cdkVirtualFor="let rowEntry of partitionedGridEntries">
|
||||||
<app-file-grid-entry (clickEvent)="setSelectedFile($event.gridEntry)" (dblClickEvent)="fileDblClickEvent.emit($event.gridEntry.file)"
|
<div class="file-row">
|
||||||
*ngFor="let gridEntry of rowEntry" [gridEntry]="gridEntry"></app-file-grid-entry>
|
<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>
|
||||||
</div>
|
</cdk-virtual-scroll-viewport>
|
||||||
</cdk-virtual-scroll-viewport>
|
|
||||||
|
</div>
|
||||||
|
Loading…
Reference in New Issue