Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: make summary elements responsive #527
  • Loading branch information
Angeluz-07 committed Oct 10, 2020
commit 3be4421ddebf7cdaf7b5947b47535dddfc7d7ba6
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class DetailsFieldsComponent implements OnChanges, OnInit {
}

onSelectedProject(item) {
this.projectSelected.emit({'projectId': item.id});
this.projectSelected.emit({ projectId : item.id});
this.entryForm.patchValue(
{
project_id: item.id,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
<h6 class="text-left"><strong>Summary</strong></h6>
<hr />
<div class="row pb-4">
<div class="col-3">
<h6>Current</h6>
<h3>{{ currentWorkingTime }}</h3>
</div>
<div class="col-3">
<h6>Day</h6>
<h3>{{ timeEntriesSummary?.day | timeDetails }}</h3>
</div>
<div class="col-3">
<h6>Week</h6>
<h3>{{ timeEntriesSummary?.week | timeDetails }}</h3>
</div>
<div class="col-3">
<h6>Month</h6>
<h3>{{ timeEntriesSummary?.month | timeDetails }}</h3>
<div class ="container px-0">
<div class="row pb-4">
<div class="col-12 col-sm-3">
<h6>Current</h6>
<h3>{{ currentWorkingTime }}</h3>
</div>
<div class="col-12 col-sm-3">
<h6>Day</h6>
<h3>{{ timeEntriesSummary?.day | timeDetails }}</h3>
</div>
<div class="col-12 col-sm-3">
<h6>Week</h6>
<h3>{{ timeEntriesSummary?.week | timeDetails }}</h3>
</div>
<div class="col-12 col-sm-3">
<h6>Month</h6>
<h3>{{ timeEntriesSummary?.month | timeDetails }}</h3>
</div>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ describe('TimeEntriesComponent', () => {
state.timeEntriesDataSource.data = [ lastEntry ];
mockEntriesSelector = store.overrideSelector(getTimeEntriesDataSource, state.timeEntriesDataSource);

component.projectSelected({'projectId' : 'id'});
component.projectSelected({ projectId : 'id'});
expect(component.entry).toEqual(lastEntry);
}));

Expand Down