Layout cleanup for library creator
This commit is contained in:
+35
-32
@@ -1,33 +1,36 @@
|
||||
<div style="margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem;">
|
||||
<input
|
||||
id="disabled-input"
|
||||
type="text"
|
||||
pInputText
|
||||
[value]="selectedProductName"
|
||||
[disabled]="true"
|
||||
[ngStyle]="{ 'width': '100%', 'padding': '0.5rem', 'font-size': '1rem' }"
|
||||
/>
|
||||
<p-button label="Select" severity="success" [ngStyle]="{ 'width': '100px' }" (click)="onSelect()"/>
|
||||
</div>
|
||||
<ng-container>
|
||||
<div style="overflow-x: auto;">
|
||||
<p-table [value]="paths" [tableStyle]="{ 'min-width': '50rem' }" class="product-table">
|
||||
<ng-template pTemplate="header">
|
||||
<tr>
|
||||
<th [style.width]="'10%'">Type</th>
|
||||
<th [style.width]="'90%'">Name</th>
|
||||
</tr>
|
||||
</ng-template>
|
||||
|
||||
<ng-template pTemplate="body" let-product>
|
||||
<tr (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 class="min-h-screen flex flex-col">
|
||||
<div class="mb-6 flex items-center gap-4">
|
||||
<input
|
||||
id="disabled-input"
|
||||
type="text"
|
||||
pInputText
|
||||
[value]="selectedProductName"
|
||||
[disabled]="true"
|
||||
class="w-full p-2 text-base"
|
||||
/>
|
||||
<p-button label="Select" severity="success" class="w-[100px]" (click)="onSelect()"></p-button>
|
||||
</div>
|
||||
</ng-container>
|
||||
|
||||
<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>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user