Skip to content

Commit

Permalink
fix: make arrow to center && fixed #88
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Apr 14, 2020
1 parent c7cd501 commit 3db59ec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<div
class="arrow"
*ngIf="isShowIconBeforeCard(data, hIndex, column, index, last, lastH)">
<span *ngIf="index === arr.length - 1 ">
<span *ngIf="index === arr.length - 1" class="arrow-down-symbol">
<span class="arrow-down"></span><span class="rect-down"></span></span>
<span *ngIf="index !== arr.length - 1 ">
<span *ngIf="index !== arr.length - 1">
<span class="arrow-left"></span><span class="rect-right"></span>
</span>
</div>
Expand All @@ -27,10 +27,10 @@
cells: data.cells[hIndex * column + index],
index: hIndex * column + index
}"></ledge-card>
<div class="arrow" *ngIf="(hIndex + 1) % 2 !== 0 && (hIndex * column + index)!==data.header.length-1">
<span *ngIf="index === arr.length - 1 ">
<div class="arrow" *ngIf="(hIndex + 1) % 2 !== 0 && (hIndex * column + index) !== data.header.length - 1">
<span *ngIf="index === arr.length - 1" class="arrow-down-symbol">
<span class="rect-down"></span><span class="arrow-down"></span></span>
<span *ngIf="index !== arr.length - 1 ">
<span *ngIf="index !== arr.length - 1">
<span class="rect-left"></span><span class="arrow-right"></span>
</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ $gray: #999aaa;
}
}

.arrow-down-symbol {
position: relative;
left: 18px;
}

.arrow {
position: relative;
width: 68px;
Expand Down

0 comments on commit 3db59ec

Please sign in to comment.