Commit 364e5ddc by Harry Rein Committed by Dillon Dumesnil

Sock upgrade message on mobile.

parent 89c861bf
...@@ -24,8 +24,8 @@ export class CourseSock { // eslint-disable-line import/prefer-default-export ...@@ -24,8 +24,8 @@ export class CourseSock { // eslint-disable-line import/prefer-default-export
- ($upgradeToVerifiedButton.width() + 22); - ($upgradeToVerifiedButton.width() + 22);
// Update positioning when scrolling is in fixed window and screen width is sufficient // Update positioning when scrolling is in fixed window and screen width is sufficient
if ((documentBottom > startFixed && documentBottom < endFixed) if ((documentBottom > startFixed && documentBottom < endFixed
|| $(window).width() < 960) { && $(window).width() > 960)) {
$upgradeToVerifiedButton.addClass('attached'); $upgradeToVerifiedButton.addClass('attached');
$upgradeToVerifiedButton.css('left', `${distLeft}px`); $upgradeToVerifiedButton.css('left', `${distLeft}px`);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment