Skip to content

[Quickfix] fix Cloze question gap width - #12032

Open
kunzeus wants to merge 1 commit into
ILIAS-eLearning:release_10from
kunzeus:fix-48000-Cloze-question-gap-too-long
Open

[Quickfix] fix Cloze question gap width#12032
kunzeus wants to merge 1 commit into
ILIAS-eLearning:release_10from
kunzeus:fix-48000-Cloze-question-gap-too-long

Conversation

@kunzeus

@kunzeus kunzeus commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

This fixes Mantis #48000 by restoring the configured Cloze text gap width instead of forcing all text inputs to width: 100%.

The change should keep large fields bounded so the overflow protection from Mantis #47413 remains intact.

@dsstrassner

Copy link
Copy Markdown
Contributor

hi @thojou could you please review as soon as possible?

@dsstrassner dsstrassner added the css/html Pull requests that propose changes to CSS/SCSS or HTML files. label Sep 4, 2026
See: https://mantis.ilias.de/view.php?id=48000

`width: 100%` on cloze text gaps ignored the configured HTML `size`
and stretched every field to the full container. Use `width: auto`
so the gap length applies again, and cap oversized fields with
`max-width` to keep the scoring-modal overflow protection. Compile
the change into `delos.css`.
@thojou
thojou force-pushed the fix-48000-Cloze-question-gap-too-long branch from 96e6ed2 to 107e799 Compare September 4, 2026 11:05
@dsstrassner

Copy link
Copy Markdown
Contributor

@thojou there is maybe a duplicated PR #12033 with belongs to the duplicated Mantis Issue: https://mantis.ilias.de/view.php?id=48210

@thojou thojou left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey all,

Thanks @kunzeus for the PR. I reviewed the change and it fixes the regression.
I compiled the skin and integrated the compiled changes into this PR.

Also this seems to be an ILIAS 10 only issue, as the views and css rules have been changed for ILIAS 11.

If the CSS authorities are fine with these changes, we can proceed with merging.

Kind regards,
@thojou

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix css/html Pull requests that propose changes to CSS/SCSS or HTML files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants