mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 12:53:32 +00:00
refactor: review overview styles
This commit is contained in:
committed by
Carlos Valente
parent
d34a1f0fd8
commit
15f3b9625c
@@ -1,5 +1,5 @@
|
||||
import { MaybeNumber } from 'ontime-types';
|
||||
import { millisToString } from 'ontime-utils';
|
||||
import { millisToString, removeLeadingZero } from 'ontime-utils';
|
||||
|
||||
import { enDash } from './styleUtils';
|
||||
|
||||
@@ -14,7 +14,7 @@ export function getOffsetText(offset: MaybeNumber): string {
|
||||
let offsetText = '';
|
||||
if (offset < 0) offsetText += '-';
|
||||
if (offset > 0) offsetText += '+';
|
||||
offsetText += millisToString(Math.abs(offset));
|
||||
offsetText += removeLeadingZero(millisToString(Math.abs(offset)));
|
||||
return offsetText;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user