Fix directory picker scroll
This commit is contained in:
@@ -60,7 +60,7 @@ export class LibraryCreatorComponent implements OnInit {
|
||||
this.directoryPickerDialogRef = this.dialogService.open(DirectoryPickerComponent, {
|
||||
header: 'Select Media Directory',
|
||||
modal: true,
|
||||
contentStyle: {overflow: 'auto'},
|
||||
contentStyle: {overflow: 'hidden'},
|
||||
baseZIndex: 10
|
||||
});
|
||||
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">
|
||||
<input
|
||||
id="disabled-input"
|
||||
@@ -10,27 +10,22 @@
|
||||
/>
|
||||
<p-button label="Select" severity="success" class="w-[100px]" (click)="onSelect()"></p-button>
|
||||
</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>
|
||||
<div class="overflow-x-auto">
|
||||
<p-table [value]="paths" [tableStyle]="{ 'min-width': '50rem' }" class="product-table w-full">
|
||||
<ng-template pTemplate="header">
|
||||
<tr>
|
||||
<th class="w-[10%]">Type</th>
|
||||
<th class="w-[90%]">Name</th>
|
||||
</tr>
|
||||
</ng-template>
|
||||
|
||||
<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>
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user