Fix directory picker scroll
This commit is contained in:
@@ -60,7 +60,7 @@ export class LibraryCreatorComponent implements OnInit {
|
|||||||
this.directoryPickerDialogRef = this.dialogService.open(DirectoryPickerComponent, {
|
this.directoryPickerDialogRef = this.dialogService.open(DirectoryPickerComponent, {
|
||||||
header: 'Select Media Directory',
|
header: 'Select Media Directory',
|
||||||
modal: true,
|
modal: true,
|
||||||
contentStyle: {overflow: 'auto'},
|
contentStyle: {overflow: 'hidden'},
|
||||||
baseZIndex: 10
|
baseZIndex: 10
|
||||||
});
|
});
|
||||||
this.directoryPickerDialogRef.onClose.subscribe((selectedFolder: string) => {
|
this.directoryPickerDialogRef.onClose.subscribe((selectedFolder: string) => {
|
||||||
|
|||||||
+18
-23
@@ -1,4 +1,4 @@
|
|||||||
<div class="min-h-screen flex max-w-[40rem] flex-col">
|
<div class="h-[50rem] flex flex-col">
|
||||||
<div class="mb-6 flex items-center gap-4">
|
<div class="mb-6 flex items-center gap-4">
|
||||||
<input
|
<input
|
||||||
id="disabled-input"
|
id="disabled-input"
|
||||||
@@ -10,27 +10,22 @@
|
|||||||
/>
|
/>
|
||||||
<p-button label="Select" severity="success" class="w-[100px]" (click)="onSelect()"></p-button>
|
<p-button label="Select" severity="success" class="w-[100px]" (click)="onSelect()"></p-button>
|
||||||
</div>
|
</div>
|
||||||
|
<p-table [value]="paths" [tableStyle]="{ 'min-width': '50rem' }" class="flex-grow overflow-y-auto">
|
||||||
|
<ng-template pTemplate="header">
|
||||||
|
<tr>
|
||||||
|
<th class="w-[10%]">Type</th>
|
||||||
|
<th class="w-[90%]">Name</th>
|
||||||
|
</tr>
|
||||||
|
</ng-template>
|
||||||
|
|
||||||
<ng-container>
|
<ng-template pTemplate="body" let-product>
|
||||||
<div class="overflow-x-auto">
|
<tr class="cursor-pointer hover:bg-white/10" (click)="onRowClick(product)">
|
||||||
<p-table [value]="paths" [tableStyle]="{ 'min-width': '50rem' }" class="product-table w-full">
|
<td>
|
||||||
<ng-template pTemplate="header">
|
<i *ngIf="product === '...'" class="pi pi-arrow-up"></i>
|
||||||
<tr>
|
<i *ngIf="product !== '...'" class="pi pi-folder-open"></i>
|
||||||
<th class="w-[10%]">Type</th>
|
</td>
|
||||||
<th class="w-[90%]">Name</th>
|
<td>{{ product }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
</p-table>
|
||||||
<ng-template pTemplate="body" let-product>
|
|
||||||
<tr class="cursor-pointer hover:bg-white/10" (click)="onRowClick(product)">
|
|
||||||
<td>
|
|
||||||
<i *ngIf="product === '...'" class="pi pi-arrow-up"></i>
|
|
||||||
<i *ngIf="product !== '...'" class="pi pi-folder-open"></i>
|
|
||||||
</td>
|
|
||||||
<td>{{ product }}</td>
|
|
||||||
</tr>
|
|
||||||
</ng-template>
|
|
||||||
</p-table>
|
|
||||||
</div>
|
|
||||||
</ng-container>
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user