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

Fix the line break in the tooltips of public statistics #2622

Merged
merged 3 commits into from
Jul 28, 2024

Conversation

cubercsl
Copy link
Contributor

@cubercsl cubercsl commented Jul 23, 2024

This PR fixes the line break in the tooltips of public statistics.

Bootstrap5 uses data-bs-* instead of data-*, so data-html should be replaced by data-bs-html. After that,
can be shown as a line break correctly.

Also, all the tooltips should be initialized by js. This is already done in domjudge.js, but it's also outdated.

See also: https://getbootstrap.com/docs/5.0/migration/#javascript

Closes #2613.

Also, popover initialization was accidentally removed in d74c94f, I have also revert this in this PR.


After fix, all tooltips in problemset statistics will be shown as below.

image

cubercsl added 3 commits July 23, 2024 20:01
Fix the line break in the tooltips of public statistics.

Bootstrap5 uses data-bs-* instead of data-*, so `data-html` should be
replaced by `data-bs-html`. After that, <br/> can be shown as a line
break correctly.

Also, all the tooltips should be initialized by js. This is already done
in `domjudge.js`, but it's also outdated.

See also: https://getbootstrap.com/docs/5.0/migration/#javascript

Closes DOMjudge#2613

Signed-off-by: cubercsl <[email protected]>
This was removed accidentally in d74c94f.

Signed-off-by: cubercsl <[email protected]>
@vmcj vmcj requested review from thijskh and nickygerritsen July 23, 2024 14:23
@meisterT meisterT added this pull request to the merge queue Jul 28, 2024
Merged via the queue into DOMjudge:main with commit 74caca6 Jul 28, 2024
26 checks passed
@cubercsl cubercsl deleted the ui-tooltips branch July 28, 2024 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The line break in the tooltips of public statistics does not show correctly
3 participants