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

fix(ui): tidy up Edge Devices configuration EE-3604 (#7797)

This commit is contained in:
matias-portainer 2022-11-10 16:13:20 -03:00 committed by GitHub
parent e1e81731b9
commit 30e23ea5b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 57 additions and 17 deletions

View file

@ -7,7 +7,7 @@ import { FormError } from '../FormError';
import styles from './FormControl.module.css';
type Size = 'small' | 'medium' | 'large';
export type Size = 'xsmall' | 'small' | 'medium' | 'large';
export interface Props {
inputId?: string;
@ -60,6 +60,8 @@ function sizeClassLabel(size?: Size) {
return 'col-sm-5 col-lg-4';
case 'medium':
return 'col-sm-4 col-lg-3';
case 'xsmall':
return 'col-sm-2';
default:
return 'col-sm-3 col-lg-2';
}
@ -71,6 +73,8 @@ function sizeClassChildren(size?: Size) {
return 'col-sm-7 col-lg-8';
case 'medium':
return 'col-sm-8 col-lg-9';
case 'xsmall':
return 'col-sm-8';
default:
return 'col-sm-9 col-lg-10';
}

View file

@ -1 +1,2 @@
export { FormControl } from './FormControl';
export type { Size } from './FormControl';