@@ -642,15 +642,15 @@ export class Dashboard extends BtrixElement {
642
642
"" ,
643
643
) } )"
644
644
>
645
- < div class ="text-center " >
646
- < div > ${ label } </ div >
647
- < div class =" text-xs opacity-80 " >
648
- ${ this . localize . bytes ( value , {
649
- unitDisplay : "narrow" ,
650
- } ) }
651
- | ${ this . renderPercentage ( value / metrics . storageUsedBytes ) }
652
- </ div >
653
- </ div >
645
+ < header class ="font-medium leading-none " > ${ label } </ header >
646
+ < hr class =" my-2 " / >
647
+ < p >
648
+ ${ this . localize . bytes ( value , {
649
+ unitDisplay : "narrow" ,
650
+ } ) }
651
+ < br />
652
+ ${ this . renderPercentage ( value / metrics . storageUsedBytes ) }
653
+ </ p >
654
654
</ btrix-meter-bar >
655
655
` ;
656
656
return html `
@@ -708,18 +708,21 @@ export class Dashboard extends BtrixElement {
708
708
renderBar ( misc , msg ( "Miscellaneous" ) , this . colors . misc ) ,
709
709
) }
710
710
< div slot ="available " class ="flex-1 ">
711
- < sl-tooltip class ="text-center ">
711
+ < btrix-popover placement =" top " class ="text-center ">
712
712
< div slot ="content ">
713
- < div > ${ msg ( "Available" ) } </ div >
714
- < div class ="text-xs opacity-80 ">
713
+ < header class ="font-medium leading-none ">
714
+ ${ msg ( "Available" ) }
715
+ </ header >
716
+ < hr class ="my-2 " />
717
+ < p >
715
718
${ this . renderPercentage (
716
719
( metrics . storageQuotaBytes - metrics . storageUsedBytes ) /
717
720
metrics . storageQuotaBytes ,
718
721
) }
719
- </ div >
722
+ </ p >
720
723
</ div >
721
724
< div class ="h-full w-full "> </ div >
722
- </ sl-tooltip >
725
+ </ btrix-popover >
723
726
</ div >
724
727
< span slot ="valueLabel "
725
728
> ${ this . localize . bytes ( metrics . storageUsedBytes , {
@@ -849,28 +852,29 @@ export class Dashboard extends BtrixElement {
849
852
return html ` < btrix-divided-meter-bar
850
853
value =${ ( used / quotaSecondsAllTypes ) * 100 }
851
854
quota =${ ( quota / quotaSecondsAllTypes ) * 100 }
852
- style="--background-color:var(--sl-color-${ color } -400 ); --quota-background-color:var(--sl-color-${ color } -100)"
855
+ style="--background-color:var(--sl-color-${ color } -500 ); --quota-background-color:var(--sl-color-${ color } -100)"
853
856
>
854
- < div class ="text-center ">
855
- < div > ${ label } </ div >
856
- < div class ="text-xs opacity-80 ">
857
- ${ humanizeExecutionSeconds ( used , { displaySeconds : true } ) } /
858
- ${ humanizeExecutionSeconds ( quota , { displaySeconds : true } ) }
859
- </ div >
860
- </ div >
857
+ < header class ="font-medium leading-none "> ${ label } </ header >
858
+ < hr class ="my-2 " />
859
+ < p >
860
+ ${ humanizeExecutionSeconds ( used , { displaySeconds : true } ) }
861
+ ${ msg ( "of" ) }
862
+ < br />
863
+ ${ humanizeExecutionSeconds ( quota , { displaySeconds : true } ) }
864
+ </ p >
861
865
</ btrix-divided-meter-bar > ` ;
862
866
} else {
863
867
return html `< btrix-meter-bar
864
868
value =${ 100 }
865
- style ="--background-color:var(--sl-color-${ color } -400 );"
869
+ style ="--background-color:var(--sl-color-${ color } -500 );"
866
870
>
867
- < div class ="text-center " >
868
- < div > ${ label } </ div >
869
- < div class =" text-xs opacity-80 " >
870
- ${ humanizeExecutionSeconds ( used , { displaySeconds : true } ) } |
871
- ${ this . renderPercentage ( used / quota ) }
872
- </ div >
873
- </ div >
871
+ < header class ="font-medium leading-none " > ${ label } </ header >
872
+ < hr class =" my-2 " / >
873
+ < p >
874
+ ${ humanizeExecutionSeconds ( used , { displaySeconds : true } ) }
875
+ < br />
876
+ ${ this . renderPercentage ( used / quota ) }
877
+ </ p >
874
878
</ btrix-meter-bar > ` ;
875
879
}
876
880
} ;
@@ -919,7 +923,7 @@ export class Dashboard extends BtrixElement {
919
923
usageSeconds > quotaSeconds ? quotaSeconds : usageSeconds ,
920
924
hasExtra ? quotaSeconds : quotaSecondsAllTypes ,
921
925
msg ( "Monthly Execution Time Used" ) ,
922
- "green " ,
926
+ "lime " ,
923
927
hasExtra ? true : false ,
924
928
) ,
925
929
) }
@@ -940,11 +944,11 @@ export class Dashboard extends BtrixElement {
940
944
: usageSecondsExtra ,
941
945
quotaSecondsExtra ,
942
946
msg ( "Extra Execution Time Used" ) ,
943
- "red " ,
947
+ "violet " ,
944
948
) ,
945
949
) }
946
950
< div slot ="available " class ="flex-1 ">
947
- < sl-tooltip class ="text-center ">
951
+ < btrix-popover placement =" top " class ="text-center ">
948
952
< div slot ="content ">
949
953
< div > ${ msg ( "Monthly Execution Time Remaining" ) } </ div >
950
954
< div class ="text-xs opacity-80 ">
@@ -958,7 +962,7 @@ export class Dashboard extends BtrixElement {
958
962
</ div >
959
963
</ div >
960
964
< div class ="h-full w-full "> </ div >
961
- </ sl-tooltip >
965
+ </ btrix-popover >
962
966
</ div >
963
967
< span slot ="valueLabel ">
964
968
${ humanizeExecutionSeconds ( usageSecondsAllTypes , {
0 commit comments