Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppres huge size of icons in Manage questions in Moodle 4.5 #611

Open
wants to merge 1 commit into
base: MOODLE_404_STABLE
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
color: gray;
}

#page-mod-questionnaire-questions .qcontainer .qnums ~ input[type=image] {
max-height: 1em;
Copy link
Author

@tats-u tats-u Oct 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

height: 1em; width: auto; might be better

I adopted max-height to keep visual compatibility with prior versions but I doubt a little that it's the best.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello

I also have this same issue

I've tried

#page-mod-questionnaire-questions .qcontainer .qnums ~ input[type=image] {
max-height: 1em;
}

and

#page-mod-questionnaire-questions .qcontainer .qnums ~ input[type=image] {
height: 1em;
width: auto;
}

And it still occurs

Just to make sure, the idea is to edit the styles.css in the Questionnaire folder, correct?

I'm on questionnaire 4.1.1 (Build - 2024082900) and using Moodle 4.5

Thank you

Copy link
Author

@tats-u tats-u Nov 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tried injecting it on Moodle as an additional HTML if you're using the stable version instead of my branch here?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding that on additionalhtmlhead

Seems to have done the trick

Yeah, I still get a bit lost around the different versions one might encounter when using GIT, so that might not have helped

Thanks a lot for the help, I can finally do my testing without destroying my mouse scroll wheel 💪

}

#page-mod-questionnaire-questions .qcontainer .fstatic {
width: 97%;
margin-right: 1em;
Expand Down