-
Notifications
You must be signed in to change notification settings - Fork 150
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
Table overflow issue #664
Comments
Hi there, what version of moodle are you using? Also please keep in mind we only test and support the core themes. If you have a problem with a 3rd party custom theme you may need to resolve this issue within your theme rather than the attendance code. Can you reproduce the same issue with the core boost theme? |
Yes its boost theme on latest 4.1.1. |
thanks - I can see this now when I set a background image in the boost settings - unfortunately removing the overflow-x: initial breaks the sticky header on the table (see #559) - I'm not sure if I will have time to look into this, but feel free to suggest other fixes. pinging: @t-schroeder - have you seen this before too? thanks! |
Headers are already sticky with moodle-mod_attendance/styles.css Line 296 in 08cfe2b
overflow-y: auto and limit the height of parent div (if its really needed) so it will make the vertical scrollbar appear.
|
Other option is to use javascript extension for bootstrap which will detect the page scroll and makes the header sticky when its about to hide above the container. |
Thanks - I'm not a fan of using JS to do this sort of thing and would prefer a css-based solution, but feel free to submit a pull request with the change for me to review! thanks! |
@t-schroeder Grader report also have this issue and a fix is already reported. They only didn't used the responsive css class |
Thanks Tim - personally I'm happy with either fix (non-transparent background) or making it restrict to the width available - although it does look visually nicer when it's restricted to the width of the parent div. |
@zishanj When I add that CSS class I lose the sticky header. |
I've made the table non-transparent as a quick improvement, but unfortunately I don't have the time to look into this further at the moment. |
thanks @t-schroeder - I didn't expect you to have any time or need to fix this - just great to have your feedback! :-) |
We have issue with the table layout where it get overflows the width:
moodle-mod_attendance/styles.css
Line 324 in 08cfe2b
overflow-x
of class.table-responsive
fromauto
toinitial
effecting the table responsiveness.The text was updated successfully, but these errors were encountered: