More styling

This commit is contained in:
Zakary Timson 2018-08-08 01:40:07 -04:00
parent 4586b2ba5e
commit dab153a7ce

View File

@ -20,6 +20,14 @@
<h5 *ngIf="!product.price" class="text-muted">Contact For Price</h5>
<mat-divider class="my-3"></mat-divider>
<p style="overflow: hidden;" [innerHtml]="product.description"></p>
<div class="float-right">
<mat-form-field class="mr-1" style="width: 40px">
<input #quantity matInput type="number" value="1" min="1">
</mat-form-field>
<button mat-raised-button color="primary" [disabled]="quantity.value < 1" (click)="app.cartAdd(product.id, product.name, product.price, product.currency, quantity.value)">
<mat-icon>add_shopping_cart</mat-icon> Buy
</button>
</div>
<mat-divider class="my-3"></mat-divider>
<div *ngIf="attachments?.length">
<h5 class="ml-3">
@ -39,14 +47,6 @@
</div>
</div>
</div>
<div class="float-right">
<mat-form-field class="mr-1" style="width: 40px">
<input #quantity matInput type="number" value="1" min="1">
</mat-form-field>
<button mat-raised-button color="primary" [disabled]="quantity.value < 1" (click)="app.cartAdd(product.id, product.name, product.price, product.currency, quantity.value)">
<mat-icon>add_shopping_cart</mat-icon> Buy
</button>
</div>
</div>
</div>
</div>