Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgibson committed May 28, 2024
1 parent 14a84e0 commit c182966
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions media/css/privacy/cookie-settings-form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ $image-path: '/media/protocol/img';
@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@import '~@mozilla-protocol/core/protocol/css/components/breadcrumb';

// Temporary fix until https://github.com/mozilla/protocol/issues/933 is resolved
.mzp-c-breadcrumb {
padding-top: $spacing-md;
padding-bottom: $spacing-md;
Expand Down
2 changes: 2 additions & 0 deletions media/js/base/consent/init.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function openBanner() {
// Show banner
document.getElementById('moz-consent-banner').classList.add('is-visible');

// Add padding to the footer
setTimeout(updateBodyPadding, 0);
window.addEventListener('resize', onResize, false);
}
Expand All @@ -103,6 +104,7 @@ function closeBanner() {
.getElementById('moz-consent-banner')
.classList.remove('is-visible');

// Remove padding from the footer
document.body.style.paddingBottom = '0';
window.removeEventListener('resize', onResize, false);
}
Expand Down

0 comments on commit c182966

Please sign in to comment.