Skip to content

Commit 3be4421

Browse files
committed
fix: make summary elements responsive #527
1 parent 29751ae commit 3be4421

File tree

3 files changed

+20
-18
lines changed

3 files changed

+20
-18
lines changed

src/app/modules/shared/components/details-fields/details-fields.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export class DetailsFieldsComponent implements OnChanges, OnInit {
111111
}
112112

113113
onSelectedProject(item) {
114-
this.projectSelected.emit({'projectId': item.id});
114+
this.projectSelected.emit({ projectId : item.id});
115115
this.entryForm.patchValue(
116116
{
117117
project_id: item.id,
Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
<h6 class="text-left"><strong>Summary</strong></h6>
22
<hr />
3-
<div class="row pb-4">
4-
<div class="col-3">
5-
<h6>Current</h6>
6-
<h3>{{ currentWorkingTime }}</h3>
7-
</div>
8-
<div class="col-3">
9-
<h6>Day</h6>
10-
<h3>{{ timeEntriesSummary?.day | timeDetails }}</h3>
11-
</div>
12-
<div class="col-3">
13-
<h6>Week</h6>
14-
<h3>{{ timeEntriesSummary?.week | timeDetails }}</h3>
15-
</div>
16-
<div class="col-3">
17-
<h6>Month</h6>
18-
<h3>{{ timeEntriesSummary?.month | timeDetails }}</h3>
3+
<div class ="container px-0">
4+
<div class="row pb-4">
5+
<div class="col-12 col-sm-3">
6+
<h6>Current</h6>
7+
<h3>{{ currentWorkingTime }}</h3>
8+
</div>
9+
<div class="col-12 col-sm-3">
10+
<h6>Day</h6>
11+
<h3>{{ timeEntriesSummary?.day | timeDetails }}</h3>
12+
</div>
13+
<div class="col-12 col-sm-3">
14+
<h6>Week</h6>
15+
<h3>{{ timeEntriesSummary?.week | timeDetails }}</h3>
16+
</div>
17+
<div class="col-12 col-sm-3">
18+
<h6>Month</h6>
19+
<h3>{{ timeEntriesSummary?.month | timeDetails }}</h3>
20+
</div>
1921
</div>
2022
</div>

src/app/modules/time-entries/pages/time-entries.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ describe('TimeEntriesComponent', () => {
361361
state.timeEntriesDataSource.data = [ lastEntry ];
362362
mockEntriesSelector = store.overrideSelector(getTimeEntriesDataSource, state.timeEntriesDataSource);
363363

364-
component.projectSelected({'projectId' : 'id'});
364+
component.projectSelected({ projectId : 'id'});
365365
expect(component.entry).toEqual(lastEntry);
366366
}));
367367

0 commit comments

Comments
 (0)