1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 06:49:40 +02:00

fix(ui): kubernetes-consistent-styling EE-3820 (#7425)

This commit is contained in:
Ali 2022-08-13 00:22:45 +06:00 committed by GitHub
parent b67f404d8d
commit 36c93c7f57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
80 changed files with 713 additions and 548 deletions

View file

@ -1,3 +1,4 @@
import clsx from 'clsx';
import { useState } from 'react';
import { createPortal } from 'react-dom';
@ -5,6 +6,7 @@ import { EnvironmentId } from '@/portainer/environments/types';
import { useAnalytics } from '@/angulartics.matomo/analytics-services';
import { Button } from '@@/buttons';
import { Icon } from '@@/Icon';
import { KubeCtlShell } from './KubectlShell';
import styles from './KubectlShellButton.module.css';
@ -19,13 +21,14 @@ export function KubectlShellButton({ environmentId }: Props) {
<>
<Button
color="primary"
size="xsmall"
size="small"
disabled={open}
data-cy="k8sSidebar-shellButton"
onClick={() => handleOpen()}
className={styles.root}
className={clsx(styles.root, '!flex')}
>
<i className="fa fa-terminal space-right" /> kubectl shell
<Icon icon="terminal" feather className="vertical-center" size="md" />{' '}
kubectl shell
</Button>
{open &&