Skip to content

Commit

Permalink
Resize preview (#1890)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaddeusJiang authored Apr 10, 2024
1 parent 8fd3489 commit da47bc4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions assets/js/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ function preview (previewing) {
makeLinksOpenInParent()
scrollToTop()
sendPreviewInfoToParent()

window.addEventListener('resize', event => {
sendPreviewInfoToParent()
})
}

function sendPreviewInfoToParent () {
Expand Down

Large diffs are not rendered by default.

0 comments on commit da47bc4

Please sign in to comment.