Commit 21f0518416fca67c5501981df5ef5d437a1fdb1b

Authored by trainee
1 parent c1ec2de9
Exists in master

no message

src/app/dashboard/dashboard.component.html
1 1  
2 2 <!-- งานใหม่ -->
3 3 <div class="row">
4   - <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12" *ngFor="let item of resultData">
  4 + <div class="col-lg-4 col-md-3 col-sm-6 col-xs-12" *ngFor="let item of resultData">
5 5 <a class="dashboard-stat dashboard-stat-v2 red"
6 6 href="http://vtiger.sourcecode.co.th/index.php?action=DetailView&module=HelpDesk&parenttab=Support&record=195885"
7 7 target="_blank"
8 8 [ngStyle] = "{'background-color': getColorDay(item.days.toFixed(0))}">
9 9 <!-- <div [ngStyle]="{'background-color':item.days === '366.0098' ? 'green' : 'red' }"></<div> -->
10 10 <!-- <div class="avater">{{(item.days).toFixed(0)}} D</div> -->
11   - <div class="avater" [ngStyle]="{'background-color': getColorDay(item.days.toFixed(0))}">{{(item.days).toFixed(0)}} D</div>
  11 + <div class="avater" [ngStyle]="{'background-color': getColorDay(item.days.toFixed(0))}" style="font-size: 26px; text-align: center; font-weight: bold;" >{{(item.days).toFixed(0)}}D</div>
12 12 <div class="visual">
13 13 <i class="fa fa-comments"></i>
14 14 </div>
15 15  
16 16 <div class="details" style="width: calc(100% - 50px);">
17 17 <div style="text-align: right; margin-top: -50px; color: black;">{{item.STATUS}}</div>
18   - <div class="number" style="width: calc(100% - 15px);">
19   - <span data-counter="counterup" data-value="" style=" color: black;">{{item.custgroupName}}</span>
  18 + <div class= "number" style=" color: black; text-align: right;">
  19 + <span data-counter="counterup" data-value="">{{item.custgroupName}}</span>
20 20 </div>
21 21 <div class="desc" style=" color: black;">{{item.team}}</div><br>
22   - <div class="desc" style="text-align: left; color: black;">{{item.COMMENT | slice:0:40 }} ....</div>
  22 + <div class="desc" style="text-align: left; text-align: bottom; color: black;">{{item.COMMENT | slice:0:20 }} ....</div>
  23 + <!-- <div class="desc" style="text-align: left; text-align: bottom; color: black;">{{(item.COMMENT > 20)? | (item.COMMENT | slice:0:20) + '....':(item.COMMENT)}}</div> -->
23 24 </div>
24 25 </a>
25 26 </div>
... ...
src/app/dashboard/dashboard.component.scss
... ... @@ -8,7 +8,7 @@
8 8 border-style: solid;
9 9 border-color: black;
10 10 text-align: center;
11   - padding-top: 20px;
  11 + padding-top: 15px;
12 12 top: -25px;
13 13  
14 14 }
... ... @@ -17,6 +17,5 @@
17 17  
18 18 .dashboard-stat {
19 19 overflow: visible;
20   - height: 210px;
21   - width: 100%;
  20 + height: 200px;
22 21 }
... ...