Skip to content

Commit

Permalink
Product list style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoumpierre committed Apr 30, 2018
1 parent 392a203 commit c09ebe5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
12 changes: 8 additions & 4 deletions src/app/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ ion-content {
}

&.product-list {
margin-bottom: 1rem;

> .item {
> ion-avatar {
margin-bottom: 0;
Expand All @@ -172,11 +174,13 @@ ion-content {
border-bottom: 1px solid #f6f7fa;
}

&:last-child > .item-inner {
border-bottom: 0;
&:last-child {
> .item-inner {
border-bottom: 0;

.ion-label {
margin-bottom: 0;
ion-label {
margin-bottom: 0;
}
}
}
}
Expand Down
10 changes: 4 additions & 6 deletions src/pages/orders/form/order-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,11 @@

<!-- Produtos -->
<div class="list-item" *ngSwitchCase="'products'">
<ion-list class="product-list">
<ion-item>
<button ion-button type="button" color="blue" full (click)="loadProductModal()">
Adicionar Produto
</button>
</ion-item>
<button ion-button type="button" color="blue" full (click)="loadProductModal()" class="add-product-button">
Adicionar Produto
</button>

<ion-list class="product-list">
<ion-item *ngFor="let product of order; let i = index">
<ion-avatar item-start>
<img src="assets/images/placeholder-60.jpg" alt="" width="60" height="60">
Expand Down
8 changes: 2 additions & 6 deletions src/pages/orders/form/order-form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ page-order-form {
}
}

.product-list {
> ion-item {
ion-label {
margin-top: 0 !important;
}
}
.add-product-button {
margin-bottom: 1rem;
}
}

0 comments on commit c09ebe5

Please sign in to comment.