Skip to content

Commit

Permalink
Fixed layout on create cloud storage page (#7985)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsekachev committed Jun 5, 2024
1 parent f531cbb commit c66bbfc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,7 @@ export default function CreateCloudStorageForm(props: Props): JSX.Element {
const credentialsBlok = (): JSX.Element | null => {
const internalCommonProps = {
...commonProps,
labelCol: { span: 8, offset: 2 },
wrapperCol: { offset: 2 },
className: `${commonProps.className} cvat-cloud-storage-form-item-offset-2`,
};

if (providerType === ProviderType.AWS_S3_BUCKET && credentialsType === CredentialsType.KEY_SECRET_KEY_PAIR) {
Expand Down Expand Up @@ -491,9 +490,7 @@ export default function CreateCloudStorageForm(props: Props): JSX.Element {

const awsS3Configuration = (): JSX.Element => {
const internalCommonProps = {
...commonProps,
labelCol: { offset: 1 },
wrapperCol: { offset: 1 },
className: `${commonProps.className} cvat-cloud-storage-form-item-offset-1`,
};

return (
Expand Down Expand Up @@ -539,9 +536,7 @@ export default function CreateCloudStorageForm(props: Props): JSX.Element {

const azureBlobStorageConfiguration = (): JSX.Element => {
const internalCommonProps = {
...commonProps,
labelCol: { offset: 1 },
wrapperCol: { offset: 1 },
className: `${commonProps.className} cvat-cloud-storage-form-item-offset-1`,
};

return (
Expand Down Expand Up @@ -576,9 +571,7 @@ export default function CreateCloudStorageForm(props: Props): JSX.Element {

const googleCloudStorageConfiguration = (): JSX.Element => {
const internalCommonProps = {
...commonProps,
labelCol: { span: 6, offset: 1 },
wrapperCol: { offset: 1 },
className: `${commonProps.className} cvat-cloud-storage-form-item-offset-1`,
};

return (
Expand Down
8 changes: 8 additions & 0 deletions cvat-ui/src/components/create-cloud-storage-page/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@
text-align: initial;

.cvat-cloud-storage-form-item {
&.cvat-cloud-storage-form-item-offset-1 {
margin-left: $grid-unit-size * 4;
}

&.cvat-cloud-storage-form-item-offset-2 {
margin-left: $grid-unit-size * 8;
}

justify-content: space-between;

> div:first-child {
Expand Down

0 comments on commit c66bbfc

Please sign in to comment.