Skip to content

Commit

Permalink
feat: use tabular nums style
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Jan 2, 2024
1 parent 5a74569 commit 7ca407f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true
"source.fixAll": "explicit"
},
"[markdown]": {
"editor.formatOnSave": false
Expand Down
9 changes: 8 additions & 1 deletion lib/src/countdown.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {

import { CountdownConfig, CountdownStatus, CountdownEvent, CountdownEventAction, CountdownItem } from './interfaces';
import { CountdownTimer } from './countdown.timer';
import { NgIf, NgTemplateOutlet, formatDate } from '@angular/common';
import { NgTemplateOutlet, formatDate } from '@angular/common';
import { COUNTDOWN_CONFIG } from './provide';

@Component({
Expand All @@ -33,6 +33,13 @@ import { COUNTDOWN_CONFIG } from './provide';
}
`,
host: { '[class.count-down]': 'true' },
styles: [
`
.count-down {
font-variant-numeric: tabular-nums;
}
`,
],
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [NgTemplateOutlet],
Expand Down

0 comments on commit 7ca407f

Please sign in to comment.