adaptlearning/adapt-contrib-vanilla

Extra breakpoints required. Missing xlarge.

Closed this issue ยท 3 comments

Following the breakpoint update in core, we need to add in an extra large node for headers and backgrounds.

switch (Adapt.device.screenSize) {
case 'large':
backgroundImage = backgroundImages._large;
break;
case 'medium':
backgroundImage = backgroundImages._medium;
break;
default:
backgroundImage = backgroundImages._small;
}

linked to issue #430

We could add this issue in now and retain the existing functionality. See issue #430 as functionality may get updated at a later date in this issue.

That code can mimic the boxMenu code, which is much simpler, less hard-codey and does the same thing:

https://github.com/adaptlearning/adapt-contrib-boxMenu/blob/040166743e2a765a7d08bd5b4e6b08a7705ecf64/js/BoxMenuView.js#L73

It's a nice one-liner.

There's also the responsiveClasses and minimumHeights configs too.

๐ŸŽ‰ This issue has been resolved in version 9.6.15 ๐ŸŽ‰

The release is available on GitHub release

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€