diff --git a/assets/less/zenodo-rdm/globals/site.overrides b/assets/less/zenodo-rdm/globals/site.overrides index 32769d49..4d29f2da 100644 --- a/assets/less/zenodo-rdm/globals/site.overrides +++ b/assets/less/zenodo-rdm/globals/site.overrides @@ -55,11 +55,41 @@ a.inverted { } -#contact-page { +#contact-page { - .panel-body { - padding-top: 2*@defaultPadding; - padding-left: 2*@defaultPadding; + .field.flex { + @media screen and (max-width: @largestMobileScreen) { + display: block; + width: 100% !important; + } + + label { + min-width: 10rem; + + + div { + flex: 1 1 0; + } + } + + .toggle { + text-align: left; + } + } + + .label-padding { + padding-left: 10rem; + + @media screen and (max-width: @largestMobileScreen) { + padding-left: 0; + } + } + + .dropzone { + width: 100%; + border: 1px solid @borderColor; + border-radius: @defaultBorderRadius; + padding: @defaultPadding; + cursor: pointer; } } diff --git a/site/zenodo_rdm/assets/semantic-ui/js/zenodo_rdm/src/support/components/CategoryDropdown.js b/site/zenodo_rdm/assets/semantic-ui/js/zenodo_rdm/src/support/components/CategoryDropdown.js index d874b427..84d1ed3a 100644 --- a/site/zenodo_rdm/assets/semantic-ui/js/zenodo_rdm/src/support/components/CategoryDropdown.js +++ b/site/zenodo_rdm/assets/semantic-ui/js/zenodo_rdm/src/support/components/CategoryDropdown.js @@ -38,7 +38,7 @@ class CategoryDropdown extends Component { } render() { - const { categories } = this.props; + const { categories, className } = this.props; const { activeCategory} = this.state; const serializedCategories = categories.map((cat) => (this.serializeCategory(cat))); @@ -52,8 +52,12 @@ class CategoryDropdown extends Component { required width={4} onChange={this.onChange} + className={className} + /> +
- {
} ) } @@ -61,12 +65,14 @@ class CategoryDropdown extends Component { CategoryDropdown.propTypes = { categories: PropTypes.array, - defaultCategory: PropTypes.string + defaultCategory: PropTypes.string, + className: PropTypes.string, }; CategoryDropdown.defaultProps = { categories: [], - defaultCategory: '' + defaultCategory: '', + className: '', }; export default CategoryDropdown; \ No newline at end of file diff --git a/site/zenodo_rdm/assets/semantic-ui/js/zenodo_rdm/src/support/components/FileUploader.js b/site/zenodo_rdm/assets/semantic-ui/js/zenodo_rdm/src/support/components/FileUploader.js index 0af8f1e1..18281c6e 100644 --- a/site/zenodo_rdm/assets/semantic-ui/js/zenodo_rdm/src/support/components/FileUploader.js +++ b/site/zenodo_rdm/assets/semantic-ui/js/zenodo_rdm/src/support/components/FileUploader.js @@ -6,33 +6,30 @@ import FileTable from "./FileTable"; const FileUploader = ({ dropzoneParams, maxFileSize, name, currentFiles, handleDelete }) => { return ( - - {({ getRootProps, getInputProps }) => { - const inpProps = { - ...getInputProps(), - // Display the dropzone input, otherwise it's hidden by default. - style: { - 'display': 'block' - }, - name: name - } - return ( -
- - - {currentFiles.length > 0 - && - - } +
+ + {({ getRootProps, getInputProps }) => ( +
+ +

+ Drag files here, or click to select files +

- ) - }} -
+ )} + + + + + {currentFiles.length > 0 + && + + } +
); }; diff --git a/site/zenodo_rdm/assets/semantic-ui/js/zenodo_rdm/src/support/components/SupportForm.js b/site/zenodo_rdm/assets/semantic-ui/js/zenodo_rdm/src/support/components/SupportForm.js index 36ae193d..ec970aaa 100644 --- a/site/zenodo_rdm/assets/semantic-ui/js/zenodo_rdm/src/support/components/SupportForm.js +++ b/site/zenodo_rdm/assets/semantic-ui/js/zenodo_rdm/src/support/components/SupportForm.js @@ -127,10 +127,8 @@ class SupportForm extends Component { // TODO: show error message when files are rejected e.g size limit console.error(rejectedFiles[0].errors); }, - noClick: true, - noKeyboard: true, maxSize: maxFileSize, - accept: ".jpeg,.jpg,.png" + accept: ".jpeg,.jpg,.png", }; return ( -
- - - -
-
- + +
+
- + +
+ +
+ + +
+
+ + diff --git a/site/zenodo_rdm/templates/semantic-ui/zenodo_rdm/support.html b/site/zenodo_rdm/templates/semantic-ui/zenodo_rdm/support.html index 7972bba7..338823ad 100644 --- a/site/zenodo_rdm/templates/semantic-ui/zenodo_rdm/support.html +++ b/site/zenodo_rdm/templates/semantic-ui/zenodo_rdm/support.html @@ -8,9 +8,9 @@ {%- set userData = user and { 'email': user.email, 'full_name': user.user_profile.full_name }%} {% block grid_section %} -
+
-
+

Contact us

Before making a request, you can have a look at our FAQ and other resources for more detailed information about the operation, features and goals of Zenodo.

@@ -21,7 +21,7 @@

Contact us

-
+
{% block root_section %}
{% endblock %}