You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's make the comment template add a css class if a comment includes a code block and more than 10 \n characters, style that class with a max-height and overflow: none, then use the checkbox hack to toggle the full comment (because we don't serve js to logged-out visitors).
The text was updated successfully, but these errors were encountered:
Alternative idea: why not use a <details> tag, and if the code block hits the line limit, pre-collapse it? This works without JS, and to detect based on lines, you could hack up the Markdown parser?
Some clod, and I'm not saying who to be polite, is prone to posting long data dumps in comments.
Let's make the comment template add a css class if a comment includes a code block and more than 10
\n
characters, style that class with amax-height
andoverflow: none
, then use the checkbox hack to toggle the full comment (because we don't serve js to logged-out visitors).The text was updated successfully, but these errors were encountered: