mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 13:59:40 +02:00
improvement(kubernetes): right align tags in datatables R8S-250 (#601)
Co-authored-by: testA113 <aliharriss1995@gmail.com>
This commit is contained in:
parent
3800249921
commit
f6f07f4690
23 changed files with 68 additions and 55 deletions
|
@ -2,11 +2,11 @@ import { CellContext } from '@tanstack/react-table';
|
|||
|
||||
import { isExternalApplication } from '@/react/kubernetes/applications/utils';
|
||||
import { useIsSystemNamespace } from '@/react/kubernetes/namespaces/queries/useIsSystemNamespace';
|
||||
import { ExternalBadge } from '@/react/kubernetes/components/ExternalBadge';
|
||||
import { SystemBadge } from '@/react/kubernetes/components/SystemBadge';
|
||||
import { Application } from '@/react/kubernetes/applications/ListView/ApplicationsDatatable/types';
|
||||
|
||||
import { Link } from '@@/Link';
|
||||
import { SystemBadge } from '@@/Badge/SystemBadge';
|
||||
import { ExternalBadge } from '@@/Badge/ExternalBadge';
|
||||
|
||||
import { helper } from './columns.helper';
|
||||
|
||||
|
@ -28,9 +28,11 @@ function Cell({ row: { original: item } }: CellContext<Application, string>) {
|
|||
</Link>
|
||||
|
||||
{isSystem ? (
|
||||
<SystemBadge />
|
||||
<SystemBadge className="ml-auto" />
|
||||
) : (
|
||||
isExternalApplication({ metadata: item.Metadata }) && <ExternalBadge />
|
||||
isExternalApplication({ metadata: item.Metadata }) && (
|
||||
<ExternalBadge className="ml-auto" />
|
||||
)
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue