From 009022a5c4bd89c3e979cf58f16bda71759241a6 Mon Sep 17 00:00:00 2001 From: Jochen Klar Date: Fri, 31 Jan 2025 19:02:03 +0100 Subject: [PATCH] Move question contact button --- .../components/main/question/Question.js | 6 ++++-- .../main/question/QuestionContact.js | 2 +- rdmo/projects/assets/scss/interview.scss | 19 +++++++++++++++---- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/rdmo/projects/assets/js/interview/components/main/question/Question.js b/rdmo/projects/assets/js/interview/components/main/question/Question.js index d760d32bf..6827a12a5 100644 --- a/rdmo/projects/assets/js/interview/components/main/question/Question.js +++ b/rdmo/projects/assets/js/interview/components/main/question/Question.js @@ -17,9 +17,11 @@ const Question = ({ settings, templates, page, question, sets, values, siblings, currentSet, createValue, updateValue, deleteValue, copyValue, fetchContact }) => { return checkQuestion(question, currentSet) && (
- - +
+ + +
diff --git a/rdmo/projects/assets/js/interview/components/main/question/QuestionContact.js b/rdmo/projects/assets/js/interview/components/main/question/QuestionContact.js index 32b3cd138..06b7a0069 100644 --- a/rdmo/projects/assets/js/interview/components/main/question/QuestionContact.js +++ b/rdmo/projects/assets/js/interview/components/main/question/QuestionContact.js @@ -3,7 +3,7 @@ import PropTypes from 'prop-types' const QuestionContact = ({ settings, question, values, fetchContact }) => { return settings.project_contact && ( - diff --git a/rdmo/projects/assets/scss/interview.scss b/rdmo/projects/assets/scss/interview.scss index c45920855..e61981ab4 100644 --- a/rdmo/projects/assets/scss/interview.scss +++ b/rdmo/projects/assets/scss/interview.scss @@ -131,6 +131,14 @@ p { margin-bottom: 5px; } + + .interview-question-text { + margin-bottom: 10px; + + .form-label { + display: inline; + } + } } .interview-questionset { @@ -401,13 +409,16 @@ color: #777; } -.btn-contact { - float: right; +.btn.btn-contact { opacity: 0.8; - line-height: 20px; - font-size: 14px; + line-height: 16px; padding: 0; + border: none; + border-radius: 0; + + margin-left: 10px; + margin-top: -3px; &:hover { opacity: 1;