Skip to content

Commit ee212af

Browse files
committed
style: TT-582 improved the clocked in hour text and current time box
1 parent a1db874 commit ee212af

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

src/app/modules/time-clock/components/time-entries-summary/time-entries-summary.component.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
color: white;
66
border-radius: .25rem;
77
}
8+
.c-title{
9+
position: relative;
10+
bottom: 9px;
11+
}
812

913
.clock-out{
1014
text-align: center;
@@ -22,4 +26,4 @@
2226
-webkit-box-shadow: 0px 1px 5px 2px rgba(0,0,0,0.56);
2327
-moz-box-shadow: 0px 1px 5px 2px rgba(0,0,0,0.56);
2428
color: #fff;
25-
}
29+
}
Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,24 @@
1-
<div *ngIf="areFieldsVisible" class="row pb-4">
2-
<div class="col-2 d-flex align-items-center">
3-
<p class="card-title text-left" style="margin: 0; padding: 0;">
1+
<div *ngIf="areFieldsVisible" class="grid grid-cols-2 gap-4 pb-4">
2+
<div class="align-items-center">
3+
<p class="card-title text-left inline-block c-title" style="margin: 0; padding: 0;">
44
You clocked in at
55
<strong>{{ activeTimeEntry?.start_date | date:'shortTime' }}</strong>
66
</p>
7-
</div>
8-
<div class="col-2 col-sm-3">
9-
<div class="current-elapsed-time-box d-flex flex-column justify-content-center align-items-center" style="width: 50%">
7+
<div class="inline-block ml-12 text-center current-elapsed-time-box " style="width: 22%">
108
<h6>Current</h6>
119
<h3>{{ currentWorkingTime }}</h3>
1210
</div>
1311
</div>
14-
<div class="col-7 clock-out">
15-
<button
16-
class="btn bt-clock-out"
17-
type="button"
18-
(click)="clockOut()">
19-
Clock Out
12+
<div class="clock-out pr-28">
13+
<button class="btn bt-clock-out" type="button" (click)="clockOut()">
14+
Clock Out
2015
</button>
2116
</div>
2217
</div>
2318

2419
<h6 class="text-left"><strong>Summary</strong></h6>
2520
<hr class="mb-4" />
26-
<div class ="container px-0">
21+
<div class="container px-0">
2722

2823
<div class="row pb-4">
2924
<div class="col-12 col-sm-4">
@@ -40,4 +35,4 @@ <h3>{{ timeEntriesSummary?.month | timeDetails }}</h3>
4035
</div>
4136
</div>
4237

43-
</div>
38+
</div>

0 commit comments

Comments
 (0)