Author

Topic: [code] function breaks the last posts list (Read 194 times)

copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
April 17, 2019, 04:24:02 PM
#3
Is this an issue with smf? I think if it was programmed in there might have been a reason for it?

I haven't had many issues with it since working it out. If it changes it might cause issues such as less code fits on one line etc... And then there's the point as what size do you change? The code post or normal posts? Do images change the size too?
legendary
Activity: 3654
Merit: 8909
https://bpip.org
Code:
document.querySelectorAll("div.code").forEach(e => { e.style.maxWidth = "1000px"; });

Replace 1000 with the desired width, in pixels.

The problem of course is that you'll need to inject this into the page - either manually via debugger or using a third-party tool such as Tampermonkey or by creating your own extension.
hero member
Activity: 1638
Merit: 756
Bobby Fischer was right
Was googling for solution, without any success.
I'm more than sure it was mentioned before, its just hard to find.
Are there any means to prevent such horrible page starching?
Any way to limit # code box, to make it look like a regular post?
Jump to: