fix(striker-ui): change interface names to monospaced

main
Tsu-ba-me 1 year ago
parent 2551404640
commit 92cae194c9
  1. 4
      striker-ui/components/BriefNetworkInterface.tsx
  2. 2
      striker-ui/components/NetworkInitForm.tsx

@ -9,7 +9,7 @@ import { Close as MUICloseIcon } from '@mui/icons-material';
import { BLACK, BORDER_RADIUS, GREY } from '../lib/consts/DEFAULT_THEME'; import { BLACK, BORDER_RADIUS, GREY } from '../lib/consts/DEFAULT_THEME';
import { BodyText } from './Text'; import { MonoText } from './Text';
type BriefNetworkInterfaceOptionalProps = { type BriefNetworkInterfaceOptionalProps = {
isFloating?: boolean; isFloating?: boolean;
@ -66,7 +66,7 @@ const BriefNetworkInterface: FC<
...restRootProps, ...restRootProps,
}} }}
> >
<BodyText text={networkInterfaceName} /> <MonoText>{networkInterfaceName}</MonoText>
{onClose && ( {onClose && (
<MUIIconButton onClick={onClose} size="small" sx={{ color: GREY }}> <MUIIconButton onClick={onClose} size="small" sx={{ color: GREY }}>
<MUICloseIcon /> <MUICloseIcon />

@ -233,7 +233,7 @@ const createNetworkInterfaceTableColumns = (
colour={networkInterfaceState === 'up' ? 'ok' : 'off'} colour={networkInterfaceState === 'up' ? 'ok' : 'off'}
sx={{ height: 'auto' }} sx={{ height: 'auto' }}
/> />
<SmallText text={value} /> <MonoText>{value}</MonoText>
</MUIBox> </MUIBox>
), ),
}, },

Loading…
Cancel
Save