Web: Settings: Backup: Added max-length for input.

This commit is contained in:
Tatiana Lopaeva 2021-05-19 09:34:16 +03:00
parent 20404ad431
commit 009d587090
2 changed files with 8 additions and 2 deletions

View File

@ -18,6 +18,7 @@ const FileInputWithFolderPath = (
baseFolder,
onClickInput,
name,
className,
},
...rest
) => {
@ -28,11 +29,12 @@ const FileInputWithFolderPath = (
hasError={hasError}
hasWarning={hasWarning}
isDisabled={isDisabled}
className={className}
{...rest}
>
<TextInput
id={id}
className="text-input"
className="text-input-with-folder-path"
placeholder={placeholder}
value={folderPath || baseFolder}
size={size}

View File

@ -21,6 +21,11 @@ const StyledComponent = styled.div`
.input-with-folder-path {
margin-top: 16px;
}
.input-with-folder-path,
.text-input-with-folder-path {
width: 100%;
max-width: 820px;
}
.panel-loader-wrapper {
margin-top: 8px;
padding-left: 32px;
@ -168,7 +173,6 @@ class OperationsDialog extends React.PureComponent {
<StyledComponent>
<FileInputWithFolderPath
name={name}
scale
className="input-with-folder-path"
baseFolder={baseFolder}
isDisabled={isLoading || isSavingProcess}