-
Notifications
You must be signed in to change notification settings - Fork 61
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
BugFix: Make outside-left and outside-right block regions really responsive, resolves #266 #643
base: main
Are you sure you want to change the base?
BugFix: Make outside-left and outside-right block regions really responsive, resolves #266 #643
Conversation
5696e9a
to
b9fa4ca
Compare
cc24267
to
23228c8
Compare
Thank you @prasanna-lmsace for contributing this fix and thank you for your patience with our pending review. I have just rebased and force-pushed your branch and will now review it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @prasanna-lmsace ,
many thanks again for working on this PR and sorry again for my long latency to review it.
I have just pushed a "Review changes" commit which is basically just housekeeping and comments / documentation.
Reviewing your changes, I did not spot major flaws on Firefox/Mac and Chrome/Mac. The outside-left and outside-right block regions are displayed on the side or wrapped properly based on the particular screen width.
As a side note: I think that the media queries / breakpoing handling for block regions have become even more complicated than they were before, but I do not have a good proposal how to simplify that, so let's keep it for now.
Having said that, I would like to highlight some breakpoint glitches where I think the proportions of the block region and the content region is not well balanced anymore.
Glitch 1a:
Browser window width
: 1200px
theme_boost_union | coursecontentmaxwidth
= 950px
Outside Left Region
= Enabled
Outside Right Region
= Enabled
theme_boost_union | blockregionoutsideleftwidth
= 350px
theme_boost_union | blockregionoutsiderightwidth
= 250px
theme_boost_union | outsideregionsplacement
= Near Window Edges
On this window size, the outside blocks still keep their configured width.
Based on the fact that both the left and the right region are used, the content area gets really condensed:
My gut feeling is that, if (and only if) both the left and the right region is enabled and used, the blocks should already be shrunken in width to give the content area more space.
Glitch 1b:
Browser window width
: 1200px
theme_boost_union | outsideregionsplacement
= Next to main content area
All other settings are the same as with glitch 1a.
With this setting, the content area is even more condensed:
My change request here is the same as with glitch 1a.
Glitch 2a:
Browser window width
: 990px
theme_boost_union | coursecontentmaxwidth
= 950px
Outside Left Region
= Enabled
Outside Right Region
= Enabled
theme_boost_union | blockregionoutsideleftwidth
= 350px
theme_boost_union | blockregionoutsiderightwidth
= 250px
theme_boost_union | outsideregionsplacement
= Next to main content area
On this window size, the outside blocks are already wrapped above and below the content area which is fine.
I have just noticed that the block regions are not fully aligned vertically with the blocks in the main area:
Would you agree that the block regions could use the same horizontal margins as the content area?
Glitch 2b:
Browser window width
: 990px
theme_boost_union | outsideregionsplacement
= Near Window Edges
All other settings are the same as with glitch 2a.
With this setting, it is surprising that the content area gets smaller and does not use the available width anymore:
This is different to the content area width with the "Next to main content area" setting and different to the content area width if you do not have any outside blocks enabled. I think this is just a glitch in the CSS selectors and can hopefully be solved quite quickly.
I would appreciate if you could have a look at these glitches, solve them and update the PR?
Please do not squash the PR, just add a new commit so that I just have to review your latest changes.
In addition to that, I have posted a small question to the code and would appreciate if you could answer it.
Many thanks in advance!
Alex
ReviewDocumentation
version.php
lib.php
Languages
Automated tests
Mustache templates
CSS and styles.css
Duplicated code
Github action
Commit history and scope
Additional aspects for Boost Union
|
57ea94b
to
431a923
Compare
Hi @abias Thank you for your detailed review and feedback on the PR. We have carefully considered the highlighted breakpoint glitches and implemented the following improvements to address them: Adjusted Block Region Widths: The left and right block region widths have been reduced to a maximum of 200px in responsive view, allowing more space for the main content block and improving usability. Enhanced Main Content Width (Glitch 2b): The main content block region is now set to full width on responsive views, overriding its "Course content max-width" setting to achieve a more balanced layout. We hope these updates resolve the layout balance issues across breakpoints. Please let us know if further adjustments are required. Many thanks again for your time and valuable feedback! Many thanks! |
Many thanks, @prasanna-lmsace , for pushing this further. I think your fixes for glitch 1a, 1b and 2a are fine. Thank you very much! Unfortunately, your fix for glitch 2b seems not to have the desired result. I do not see that the content is expanding to full window width with the given settings. Well, at least partly. When the page is loaded, the content is full width for a fraction of a second and then it collapses to a smaller with. In addition to that, the fix for glitch 2b seems to have an undesired side effect on really large screens where the maximum width is not respected anymore as well. Would you mind to have another look at glitch 2b In addition to that, I have to add a third glitch which I just encountered: Glitch 3:
On this rather large window size, the content area used to get enough space based on the coursecontentmaxwidth setting: However, with this patch (and otherwise unchanged settings), the content area is compressed to a width with less than the coursecontentmaxwidth setting even though there would be enough space: Is this something which can be avoided? Thanks in advance, |
1cc87be
to
dcc39d4
Compare
Hi @abias Thank you for highlighting the issues and providing detailed feedback along with the screen recording. We’ve implemented the following updates: Resolved Glitch 2b: The content now consistently expands to full window width as expected and no longer collapses after the page load. Addressed Large Screen Behavior: The maximum width is now correctly respected across all screen sizes. Fixed Glitch 3: The content area dynamically adjusts to the Please let us know if any further adjustments are needed. Many thanks again for your time and valuable feedback! Thanks |
No description provided.