scicafe / scicafe.github.io

scicafe blog
https://sci.cafe
GNU General Public License v3.0
1 stars 0 forks source link

Making code blocks/console blocks scrollable so that the code does not extend out of the block #16

Closed soham96 closed 4 years ago

soham96 commented 4 years ago

Check out this image:

Screenshot 2020-05-13 at 11 31 07 AM
soham96 commented 4 years ago

So I was trying to figure out how to solve it and I did the following:

Added: overflow-y: auto !important; Removed: white-space: pre-wrap;

Behaviour changes:

I also do not know if what I did is 'good practice' so I did not push it. Just hoping that it might help @prasannakumaar28 and help you get an idea of what the best way to make it scrollable is.

suriyadeepan commented 4 years ago

e6b0d86b5e2e8aafff4546439f8596fc89cb1b47 fixes this issue.