From d0d2579149ec2082e3a3a837fa0c3d42d63f5ac7 Mon Sep 17 00:00:00 2001 From: Maya Date: Wed, 1 Dec 2021 16:00:49 +0300 Subject: [PATCH] fix --- .../create-cloud-storage-page/cloud-storage-form.tsx | 2 +- cvat-ui/src/components/create-cloud-storage-page/styles.scss | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cvat-ui/src/components/create-cloud-storage-page/cloud-storage-form.tsx b/cvat-ui/src/components/create-cloud-storage-page/cloud-storage-form.tsx index b06212b18567..af78fccac4cc 100644 --- a/cvat-ui/src/components/create-cloud-storage-page/cloud-storage-form.tsx +++ b/cvat-ui/src/components/create-cloud-storage-page/cloud-storage-form.tsx @@ -440,7 +440,7 @@ export default function CreateCloudStorageForm(props: Props): JSX.Element { multiple={false} maxCount={1} fileList={ - uploadedKeyFile ? [{ uid: '1', name: 'key.json' }] : [] + uploadedKeyFile ? [{ uid: '1', name: uploadedKeyFile.name }] : [] } beforeUpload={(file: RcFile): boolean => { setUploadedKeyFile(file); diff --git a/cvat-ui/src/components/create-cloud-storage-page/styles.scss b/cvat-ui/src/components/create-cloud-storage-page/styles.scss index 31ba6ad062f4..265645e2c2db 100644 --- a/cvat-ui/src/components/create-cloud-storage-page/styles.scss +++ b/cvat-ui/src/components/create-cloud-storage-page/styles.scss @@ -41,6 +41,10 @@ :nth-child(1) { flex-grow: 1; } + + :nth-child(2) { + max-width: 37 * $grid-unit-size; + } } > div:not(first-child) {