Skip to content

Instantly share code, notes, and snippets.

@icio
Created May 23, 2023 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icio/0db5433ea10a2562fbb5659f6d438563 to your computer and use it in GitHub Desktop.
Save icio/0db5433ea10a2562fbb5659f6d438563 to your computer and use it in GitHub Desktop.
(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