Improve tabs layout (#232)

pull/233/head
Thomas 4 years ago committed by GitHub
parent 80ba112bc0
commit f0c6517019
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -17,7 +17,6 @@
h-100 h-100
justify-content-center justify-content-center
overview overview
p-3
position-relative position-relative
" "
> >
@ -78,7 +77,14 @@
<ng-template mat-tab-label> <ng-template mat-tab-label>
<ion-icon name="wallet-outline" size="large"></ion-icon> <ion-icon name="wallet-outline" size="large"></ion-icon>
</ng-template> </ng-template>
<div class="container justify-content-center p-3 positions"> <div class="container justify-content-center pb-3 px-3 positions">
<h3
*ngIf="hasPositions === true"
class="d-flex justify-content-center mb-3"
i18n
>
Positions
</h3>
<div class="row"> <div class="row">
<div class="align-items-center col"> <div class="align-items-center col">
<mat-card *ngIf="hasPositions === true" class="p-0"> <mat-card *ngIf="hasPositions === true" class="p-0">
@ -106,7 +112,7 @@
<ng-template mat-tab-label> <ng-template mat-tab-label>
<ion-icon name="reader-outline" size="large"></ion-icon> <ion-icon name="reader-outline" size="large"></ion-icon>
</ng-template> </ng-template>
<div class="container p-3 positions"> <div class="container pb-3 px-3 positions">
<div class="row"> <div class="row">
<div class="col-xs-12 col-md-6 mb-3"> <div class="col-xs-12 col-md-6 mb-3">
<mat-card class="h-100"> <mat-card class="h-100">

@ -68,6 +68,7 @@
.mat-tab-label-active { .mat-tab-label-active {
color: rgba(var(--palette-primary-500), 1); color: rgba(var(--palette-primary-500), 1);
opacity: 1;
} }
} }
} }

@ -16,7 +16,6 @@
h-100 h-100
justify-content-center justify-content-center
overview overview
p-3
position-relative position-relative
" "
> >
@ -59,7 +58,11 @@
<ng-template mat-tab-label> <ng-template mat-tab-label>
<ion-icon name="wallet-outline" size="large"></ion-icon> <ion-icon name="wallet-outline" size="large"></ion-icon>
</ng-template> </ng-template>
<div class="container justify-content-center p-3 positions"> <div
*ngIf="hasPositions === true"
class="container justify-content-center pb-3 px-3 positions"
>
<h3 class="d-flex justify-content-center mb-3" i18n>Positions</h3>
<div class="row"> <div class="row">
<div class="align-items-center col"> <div class="align-items-center col">
<mat-card *ngIf="hasPositions === true" class="p-0"> <mat-card *ngIf="hasPositions === true" class="p-0">

@ -63,6 +63,7 @@
.mat-tab-label-active { .mat-tab-label-active {
color: rgba(var(--palette-primary-500), 1); color: rgba(var(--palette-primary-500), 1);
opacity: 1;
} }
} }
} }

Loading…
Cancel
Save