Skip to content

Commit

Permalink
fix: correct form header padding when no banner is available
Browse files Browse the repository at this point in the history
  • Loading branch information
karrui committed Sep 30, 2020
1 parent 8b7b88e commit 421a117
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function startPageController(SpcpSession, Toastr) {
}

const banner = document.getElementById('notification-banner')
const bannerHeight = banner ? `${banner.offsetHeight + 20}px` : '0px'
const bannerHeight = banner ? `${banner.offsetHeight + 20}px` : '20px'
// Update height of header
header.style.paddingTop = bannerHeight

Expand Down

0 comments on commit 421a117

Please sign in to comment.