Skip to content

Commit

Permalink
Ensure code blocks borders stay rounded when block is expanded. (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefano-ottolenghi authored Aug 30, 2023
1 parent 97657e9 commit 926ec64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/06-code.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ document.addEventListener('DOMContentLoaded', function () {
var showMore = pre.querySelector('div.show-more')

pre.style.maxHeight = pre.scrollHeight + 'px'
pre.style.overflow = 'visible'
pre.style.overflow = ''
pre.style.cursor = ''
code.style.webkitMaskImage = ''
code.style.maskImage = ''
Expand Down

0 comments on commit 926ec64

Please sign in to comment.