diff --git a/src/components/sendFeedback/ISendFeedbackComponentProps.ts b/src/components/sendFeedback/ISendFeedbackComponentProps.ts index 5aa3942..78b1926 100644 --- a/src/components/sendFeedback/ISendFeedbackComponentProps.ts +++ b/src/components/sendFeedback/ISendFeedbackComponentProps.ts @@ -28,6 +28,11 @@ export interface ISendFeedbackComponentProps { */ currentUser?: Profile + /** + * Styles + */ + classes?: any + /** * Translate to locale string */ diff --git a/src/components/sendFeedback/SendFeedbackComponent.tsx b/src/components/sendFeedback/SendFeedbackComponent.tsx index bf5fd75..757eb66 100644 --- a/src/components/sendFeedback/SendFeedbackComponent.tsx +++ b/src/components/sendFeedback/SendFeedbackComponent.tsx @@ -2,6 +2,9 @@ import React, { Component } from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' +import classNames from 'classnames' + +// - Material UI import Paper from 'material-ui/Paper' import TextField from 'material-ui/TextField' import IconButton from 'material-ui/IconButton' @@ -11,6 +14,7 @@ import SvgClose from 'material-ui-icons/Clear' import { CircularProgress } from 'material-ui/Progress' import Tooltip from 'material-ui/Tooltip' import { getTranslate, getActiveLanguage } from 'react-localize-redux' +import { withStyles } from 'material-ui/styles' // - Import app components @@ -30,6 +34,17 @@ import { ServerRequestType } from 'constants/serverRequestType' import { User } from 'core/domain/users' import { ServerRequestStatusType } from 'actions/serverRequestStatusType' +const styles = (theme: any) => ({ + fullPageXs: { + [theme.breakpoints.down('xs')]: { + width: '100%', + height: '100%', + margin: 0, + overflowY: 'auto' + } + } +}) + /** * Create component class */ @@ -180,11 +195,11 @@ export class SendFeedbackComponent extends Component +
@@ -240,4 +255,4 @@ const mapStateToProps = (state: any, ownProps: ISendFeedbackComponentProps) => { } // - Connect component to redux store -export default connect(mapStateToProps, mapDispatchToProps)(SendFeedbackComponent as any) +export default connect(mapStateToProps, mapDispatchToProps)((withStyles(styles)(SendFeedbackComponent as any)) as any) diff --git a/src/styles/app.css b/src/styles/app.css index 03d07b6..b2da0f9 100644 --- a/src/styles/app.css +++ b/src/styles/app.css @@ -657,11 +657,9 @@ g__input-underline::after { position: fixed; right: 5px; bottom: 5px; - z-index: 1; } + z-index: 1101; } .sendFeedback__content .paper { - width: 350px; height: 100%; - margin: 20px; text-align: center; } .sendFeedback__content .main-box { padding: 26px 26px 0px 26px; } diff --git a/src/styles/components/_sendFeedback.scss b/src/styles/components/_sendFeedback.scss index 64f5891..aec5dd4 100644 --- a/src/styles/components/_sendFeedback.scss +++ b/src/styles/components/_sendFeedback.scss @@ -3,11 +3,9 @@ position: fixed; right: 5px; bottom: 5px; - z-index: 1; + z-index: 1101; .paper { - width: 350px; height: 100%; - margin: 20px; text-align: center; }