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:
parent
e1e81731b9
commit
30e23ea5b4
6 changed files with 57 additions and 17 deletions
|
@ -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';
|
||||
}
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
export { FormControl } from './FormControl';
|
||||
export type { Size } from './FormControl';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue