Skip to content
This repository was archived by the owner on Feb 10, 2022. It is now read-only.

Commit 4905a7d

Browse files
committed
call duration time bug fixed
1. body tag css is modified 2. dial_view height value is modified.
1 parent 97f0b93 commit 4905a7d

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

css/main.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
body {
1616
margin: 0 auto;
17+
overflow: hidden;
1718
}
1819

1920
.center {

lib/css/styles.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ const styles = {
228228
},
229229

230230
viewDial: {
231+
height: 'calc(100% - 110px)',
231232
color: colors.navy900,
232233
'& $content': {
233234
marginTop: 'auto'

lib/views/CallLogItem.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ export class CallLogItem {
5353

5454
//duration
5555
let callDurationTime = '';
56-
callLogInfo.duration = 3603;
5756
if(callLogInfo.duration > 0){
58-
let hour = parseInt(callLogInfo.duration / 3600);
59-
let min = parseInt((callLogInfo.duration - (hour * 3600)) / 60);
60-
let sec = callLogInfo.duration - (hour * 3600) - (min * 60);
57+
let tempDuration = Math.ceil(callLogInfo.duration / 1000);
58+
let hour = parseInt(tempDuration / 3600);
59+
let min = parseInt((tempDuration - (hour * 3600)) / 60);
60+
let sec = tempDuration - (hour * 3600) - (min * 60);
6161
if( hour > 0 ){
6262
callDurationTime = hour + 'h ';
6363
}

0 commit comments

Comments
 (0)