Fix style diff in create ticket form without attachment file button (#974)
This commit is contained in:
parent
0bcc775944
commit
55c89d58cc
|
@ -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';
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue