remove class name guessing

This commit is contained in:
shamoon 2023-10-04 21:05:55 -07:00
parent d49310775a
commit 59c03aebe5
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ export default function KubernetesStatus({ service, style }) {
} }
return ( return (
<div className={`w-auto text-center overflow-hidden ${backgroundClass} rounded-b-[3px] k8s-status-${statusLabel.toLowerCase().replace(' ', '')}`} title={statusTitle}> <div className={`w-auto text-center overflow-hidden ${backgroundClass} rounded-b-[3px] k8s-status`} title={statusTitle}>
{style !== 'dot' && <div className={`text-[8px] font-bold ${colorClass} uppercase`}>{statusLabel}</div>} {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={`rounded-full h-3 w-3 ${colorClass}`}/>}
</div> </div>

View File

@ -50,7 +50,7 @@ export default function Status({ service, style }) {
} }
return ( return (
<div className={`w-auto text-center overflow-hidden ${backgroundClass} rounded-b-[3px] docker-status-${statusLabel.toLowerCase().replace(' ', '')}`} title={statusTitle}> <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={`text-[8px] font-bold ${colorClass} uppercase`}>{statusLabel}</div>}
{style === 'dot' && <div className={`rounded-full h-3 w-3 ${colorClass}`}/>} {style === 'dot' && <div className={`rounded-full h-3 w-3 ${colorClass}`}/>}
</div> </div>