gwern / gwern.net

Site infrastructure for gwern.net (CSS/JS/HS/images/icons). Custom Hakyll website with unique automatic link archiving, recursive tooltip popup UX, dark mode, and typography (sidenotes+dropcaps+admonitions+inflation-adjuster).

Home Page:https://gwern.net/design

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

100px inline height in collapsible blocks with code in it

zaidhaan opened this issue · comments

In the article Problem 14, all 7 collapsible blocks with code in them have a fixed height of 100px in them. (This does not affect the first collapsible which is a spreadsheet and not a code block).

<pre class="sourceCode R collapse-content-wrapper" style="height: 100px;">
    <code class="sourceCode r"> ... </code>
</pre>

This makes it hard to read (refer to the image below, only three lines visible), removing the inline style gets rid of this.

Image of fixed height block

Screenshot from Mozilla Firefox 108.0.1 on Arch Linux, also tried in Chromium Version 108.0.5359.124, behaves the same.

Can confirm: code collapses do not uncollapse, they just continue to show the collapsed/truncated version. Bad. I've pinged Achmiz. Must be a fairly new bug, I'm sure I checked /Lorem's code collapses in December 2022.

Might be caused by 8008c4a but I'd guess Achmiz would've already figured the cause by now.

He agrees, but doesn't have time right this second to fix it properly so I'm commenting it out.