Created
May 23, 2023 15:08
-
-
Save icio/0db5433ea10a2562fbb5659f6d438563 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
/* Allow timeline to fully expand. */ | |
const s = document.querySelector('virtual-scroll'); | |
function noscroll(s) { s.height = s.overflow = s.overflowY = 'unset'; } | |
for (let i = 0, p = s.parentNode; i < 5; i++, p = p.parentNode) noscroll(p.style); | |
s.removeChild(s.querySelector('.total-padding')); | |
s.querySelector('.scrollable-content:not(.header)').style.position = 'relative'; | |
/* Sticky span details to right. */ | |
const d = document.querySelector('trace-row-details'); | |
Object.assign(d.style, {display: 'block', position: 'sticky', top: 0, maxHeight: '100vh', overflowY: 'scroll'}); | |
d.firstChild.style.padding = '28px 0 120px'; | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment