-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9eb428a
commit 014edf4
Showing
24 changed files
with
298 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/app/modules/trade/component/trade-message-item/trade-message-item.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/app/modules/trade/component/trade-message-item/trade-message-item.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,30 @@ | ||
:host, | ||
.item { | ||
display: flex; | ||
width: 100%; | ||
} | ||
|
||
.name, | ||
.price { | ||
display: flex; | ||
width: 100%; | ||
} | ||
|
||
.item { | ||
flex-direction: row; | ||
line-height: 32px; | ||
|
||
&.reverse { | ||
flex-direction: row-reverse; | ||
|
||
.price { | ||
justify-content: flex-end; | ||
} | ||
} | ||
|
||
&:not(.reverse) { | ||
.name { | ||
justify-content: flex-end; | ||
} | ||
} | ||
} |
10 changes: 5 additions & 5 deletions
10
src/app/modules/trade/component/trade-message-map-tier/trade-message-map-tier.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<div class="list"> | ||
<div class="list" [class.left]="left"> | ||
<div class="tier">{{list.tier}}</div> | ||
<div class="maps"> | ||
<span class="map" *ngFor="let map of list.maps;last as last" [title]="map"> | ||
<ng-container *ngIf="last">{{map}}</ng-container> | ||
<ng-container *ngIf="!last">{{map}}, </ng-container> | ||
</span> | ||
<div *ngFor="let map of list.maps;last as last" [title]="map"> | ||
<ng-container *ngIf="last">{{map | truncateText:12}}</ng-container> | ||
<ng-container *ngIf="!last">{{map | truncateText:12}}, </ng-container> | ||
</div> | ||
</div> | ||
</div> |
16 changes: 8 additions & 8 deletions
16
src/app/modules/trade/component/trade-message-map-tier/trade-message-map-tier.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
@import "../../../../../styles/variables"; | ||
|
||
:host, | ||
.list { | ||
display: flex; | ||
width: 100%; | ||
} | ||
|
||
.list { | ||
&.left { | ||
justify-content: flex-end; | ||
} | ||
} | ||
|
||
.tier { | ||
color: $light-dark-grey; | ||
padding-right: $gutter-half; | ||
} | ||
|
||
.map { | ||
display: block; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
width: 100px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/app/modules/trade/component/trade-message-map/trade-message-map.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<div class="item"> | ||
<app-trade-message-map-tier [list]="message.maps1"></app-trade-message-map-tier> | ||
<app-trade-message-map-tier [list]="message.maps1" [left]="true"></app-trade-message-map-tier> | ||
<app-trade-message-direction></app-trade-message-direction> | ||
<app-trade-message-map-tier [list]="message.maps2"></app-trade-message-map-tier> | ||
</div> |
2 changes: 2 additions & 0 deletions
2
src/app/modules/trade/component/trade-message-map/trade-message-map.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
:host, | ||
.item { | ||
display: flex; | ||
width: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.