1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-04 21:35:23 +02:00

improvement(kubernetes): right align tags in datatables R8S-250 (#601)

Co-authored-by: testA113 <aliharriss1995@gmail.com>
This commit is contained in:
James Player 2025-04-03 14:18:31 +13:00 committed by GitHub
parent 3800249921
commit f6f07f4690
23 changed files with 68 additions and 55 deletions

View file

@ -43,7 +43,7 @@ function Cell({ row }: CellContext<SecretRowData, string>) {
return (
<Authorized authorizations="K8sSecretsR" childrenUnauthorized={name}>
<div className="flex w-fit gap-x-2">
<div className="flex gap-2">
<Link
to="kubernetes.secrets.secret"
params={{
@ -56,9 +56,11 @@ function Cell({ row }: CellContext<SecretRowData, string>) {
>
{name}
</Link>
{isSystemSecret && <SystemBadge />}
{!isSystemToken && !hasConfigurationOwner && <ExternalBadge />}
{!row.original.inUse && !isSystemSecret && <UnusedBadge />}
<div className="ml-auto flex gap-2">
{isSystemSecret && <SystemBadge />}
{!isSystemToken && !hasConfigurationOwner && <ExternalBadge />}
{!row.original.inUse && !isSystemSecret && <UnusedBadge />}
</div>
</div>
</Authorized>
);