File tree 1 file changed +8
-8
lines changed
site/src/pages/TemplatePage/TemplateInsightsPage
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ const TemplateUsagePanel = ({
186
186
return (
187
187
< Panel { ...panelProps } >
188
188
< PanelHeader >
189
- < PanelTitle > App‘s & IDE usage </ PanelTitle >
189
+ < PanelTitle > App & IDE Usage </ PanelTitle >
190
190
< PanelSubtitle > Last 7 days</ PanelSubtitle >
191
191
</ PanelHeader >
192
192
< PanelContent >
@@ -244,7 +244,7 @@ const TemplateUsagePanel = ({
244
244
sx = { {
245
245
fontSize : 13 ,
246
246
color : ( theme ) => theme . palette . text . secondary ,
247
- width : 200 ,
247
+ width : 120 ,
248
248
flexShrink : 0 ,
249
249
} }
250
250
>
@@ -339,13 +339,13 @@ function formatTime(seconds: number): string {
339
339
const minutes = Math . floor ( seconds / 60 )
340
340
return minutes + " minutes"
341
341
} else {
342
- const hours = Math . floor ( seconds / 3600 )
343
- const remainingMinutes = Math . floor ( ( seconds % 3600 ) / 60 )
344
- if ( remainingMinutes === 0 ) {
345
- return hours + " hours"
346
- } else {
347
- return hours + " hours, " + remainingMinutes + " minutes"
342
+ const hours = seconds / 3600
343
+ const minutes = Math . floor ( seconds % 3600 )
344
+ if ( minutes === 0 ) {
345
+ return hours . toFixed ( 0 ) + " hours"
348
346
}
347
+
348
+ return hours . toFixed ( 1 ) + " hours"
349
349
}
350
350
}
351
351
You can’t perform that action at this time.
0 commit comments