@@ -507,20 +507,23 @@ async function createExtensionCard(data) {
507
507
const extensionForText = createElement ( {
508
508
type : 'span' ,
509
509
attributes : { class : 'card-row-text' } ,
510
- innerText : 'Extension for :' ,
510
+ innerText : 'New Deadline :' ,
511
511
} ) ;
512
512
extensionForContainer . appendChild ( extensionForText ) ;
513
+ const extensionInValue = createElement ( {
514
+ type : 'span' ,
515
+ attributes : { class : 'card-row-text-small' } ,
516
+ innerText : ` (in ${ extensionDays } )` ,
517
+ } ) ;
513
518
const extensionForValue = createElement ( {
514
519
type : 'span' ,
515
520
attributes : { class : 'tooltip-container' } ,
516
- innerText : ` + ${ extensionDays } ` ,
521
+ innerText : ` ${ shortDateString ( secondsToMilliSeconds ( data . newEndsOn ) ) } ` ,
517
522
} ) ;
518
523
const extensionToolTip = createElement ( {
519
524
type : 'span' ,
520
525
attributes : { class : 'tooltip' } ,
521
- innerText : `New Deadline: ${ fullDateString (
522
- secondsToMilliSeconds ( data . newEndsOn ) ,
523
- ) } `,
526
+ innerText : `${ fullDateString ( secondsToMilliSeconds ( data . newEndsOn ) ) } ` ,
524
527
} ) ;
525
528
extensionForValue . appendChild ( extensionToolTip ) ;
526
529
const extensionInput = createElement ( {
@@ -536,6 +539,7 @@ async function createExtensionCard(data) {
536
539
} ) ;
537
540
extensionForContainer . appendChild ( extensionInput ) ;
538
541
extensionForContainer . appendChild ( extensionForValue ) ;
542
+ extensionForContainer . appendChild ( extensionInValue ) ;
539
543
const requestedContainer = createElement ( {
540
544
type : 'div' ,
541
545
} ) ;
0 commit comments