mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-28 16:24:42 +02:00
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 React from 'react';
|
||||||
import {connect} from 'react-redux';
|
|
||||||
import classNames from 'classnames';
|
|
||||||
|
|
||||||
import DropDown from 'core-components/drop-down';
|
import DropDown from 'core-components/drop-down';
|
||||||
import Icon from 'core-components/icon';
|
import Icon from 'core-components/icon';
|
||||||
|
@ -79,7 +79,7 @@ class CreateTicketForm extends React.Component {
|
|||||||
fieldProps={{allowImages: allowAttachments}}
|
fieldProps={{allowImages: allowAttachments}}
|
||||||
required
|
required
|
||||||
field="textarea" />
|
field="textarea" />
|
||||||
<div className="create-ticket-form__buttons-container">
|
<div className={`create-ticket-form__buttons-container${allowAttachments ? "" : "-without-allow-attachments"}`}>
|
||||||
{allowAttachments ? this.renderFileUpload() : null}
|
{allowAttachments ? this.renderFileUpload() : null}
|
||||||
{(!userLogged) ? this.renderCaptcha() : null}
|
{(!userLogged) ? this.renderCaptcha() : null}
|
||||||
<SubmitButton type="secondary">{i18n('CREATE_TICKET')}</SubmitButton>
|
<SubmitButton type="secondary">{i18n('CREATE_TICKET')}</SubmitButton>
|
||||||
|
@ -13,6 +13,14 @@
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
|
&-without-allow-attachments {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: flex-end;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__captcha {
|
&__captcha {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user