Fix style diff in create ticket form without attachment file button (#974)

This commit is contained in:
LautaroCesso 2021-08-29 22:11:22 -03:00 committed by GitHub
parent 0bcc775944
commit 55c89d58cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,4 @@
import React from 'react';
import {connect} from 'react-redux';
import classNames from 'classnames';
import DropDown from 'core-components/drop-down';
import Icon from 'core-components/icon';

View File

@ -79,7 +79,7 @@ class CreateTicketForm extends React.Component {
fieldProps={{allowImages: allowAttachments}}
required
field="textarea" />
<div className="create-ticket-form__buttons-container">
<div className={`create-ticket-form__buttons-container${allowAttachments ? "" : "-without-allow-attachments"}`}>
{allowAttachments ? this.renderFileUpload() : null}
{(!userLogged) ? this.renderCaptcha() : null}
<SubmitButton type="secondary">{i18n('CREATE_TICKET')}</SubmitButton>

View File

@ -13,6 +13,14 @@
flex-direction: row;
justify-content: space-between;
align-items: center;
&-without-allow-attachments {
display: flex;
flex-direction: row;
justify-content: flex-end;
align-items: center;
width: 100%;
}
}
&__captcha {