From 9fb7c69b839c28790b12e837cd35b8cfbe3b8cb8 Mon Sep 17 00:00:00 2001 From: PranavAwasthi Date: Fri, 6 Sep 2024 15:23:05 +0530 Subject: [PATCH 1/3] Fixed question label alignment --- css/common.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/css/common.css b/css/common.css index 3dead6e27..286c2baf6 100644 --- a/css/common.css +++ b/css/common.css @@ -267,6 +267,9 @@ footer.qsm-popup__footer button.qsm-popup-secondary-button:hover { width: auto; margin-bottom: 10px; } +.quiz_section .mlw_qmn_new_question label { + display: inline; +} .quiz_section .mlw_qmn_question.qsm_remove_bold { font-weight: normal; display: block; From cb5c4405eb92b38cbc1a027737c98b0f7c9dbcb7 Mon Sep 17 00:00:00 2001 From: PranavAwasthi Date: Fri, 6 Sep 2024 16:15:07 +0530 Subject: [PATCH 2/3] Modified CSS --- css/common.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/css/common.css b/css/common.css index 286c2baf6..3f4768bc9 100644 --- a/css/common.css +++ b/css/common.css @@ -267,7 +267,10 @@ footer.qsm-popup__footer button.qsm-popup-secondary-button:hover { width: auto; margin-bottom: 10px; } -.quiz_section .mlw_qmn_new_question label { +.quiz_section.question-type-3 .mlw_qmn_new_question label, +.quiz_section.question-type-5 .mlw_qmn_new_question label, +.quiz_section.question-type-7 .mlw_qmn_new_question label, +.quiz_section.question-type-12 .mlw_qmn_new_question label { display: inline; } .quiz_section .mlw_qmn_question.qsm_remove_bold { From 0e41f85fc26adefa473cd330fab47348520a12a9 Mon Sep 17 00:00:00 2001 From: PranavAwasthi Date: Fri, 6 Sep 2024 16:33:18 +0530 Subject: [PATCH 3/3] Added class in label element --- css/common.css | 5 +---- php/question-types/qsm-question-title.php | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/css/common.css b/css/common.css index 3f4768bc9..8f3b2cb52 100644 --- a/css/common.css +++ b/css/common.css @@ -267,10 +267,7 @@ footer.qsm-popup__footer button.qsm-popup-secondary-button:hover { width: auto; margin-bottom: 10px; } -.quiz_section.question-type-3 .mlw_qmn_new_question label, -.quiz_section.question-type-5 .mlw_qmn_new_question label, -.quiz_section.question-type-7 .mlw_qmn_new_question label, -.quiz_section.question-type-12 .mlw_qmn_new_question label { +.quiz_section .mlw_qmn_new_question .qsm-question-title-label { display: inline; } .quiz_section .mlw_qmn_question.qsm_remove_bold { diff --git a/php/question-types/qsm-question-title.php b/php/question-types/qsm-question-title.php index 36e364f53..c7703312e 100644 --- a/php/question-types/qsm-question-title.php +++ b/php/question-types/qsm-question-title.php @@ -28,7 +28,7 @@ function qsm_question_title_func( $question, $question_type = '', $new_question_ $new_question_title = apply_filters( 'qsm_question_title_before', $new_question_title, $question_type, $question_id ); if ( in_array( intval( get_question_type( $question_id ) ), [ 12, 7, 3, 5 ], true ) ) { ?> -
+