|
|
|
@ -45,14 +45,17 @@ export default function Status({ service, style }) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (style === 'dot') {
|
|
|
|
|
colorClass = colorClass.replace('text-', 'bg-').replace(/\/\d\d$/, '');
|
|
|
|
|
colorClass = colorClass.replace(/text-/g, 'bg-').replace(/\/\d\d/g, '');
|
|
|
|
|
backgroundClass = "p-4 hover:bg-theme-500/10 dark:hover:bg-theme-900/20";
|
|
|
|
|
statusTitle = statusLabel;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className={`w-auto text-center overflow-hidden ${backgroundClass} rounded-b-[3px] docker-status`} title={statusTitle}>
|
|
|
|
|
{style !== 'dot' && <div className={`text-[8px] font-bold ${colorClass} uppercase`}>{statusLabel}</div>}
|
|
|
|
|
{style === 'dot' && <div className={`rounded-full h-3 w-3 ${colorClass}`}/>}
|
|
|
|
|
{style !== 'dot' ?
|
|
|
|
|
<div className={`text-[8px] font-bold ${colorClass} uppercase`}>{statusLabel}</div> :
|
|
|
|
|
<div className={`rounded-full h-3 w-3 ${colorClass}`}/>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|