Bitcoin Forum
June 23, 2024, 11:45:34 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [code] function breaks the last posts list  (Read 175 times)
poptok1 (OP)
Hero Member
*****
Offline Offline

Activity: 1638
Merit: 756


Bobby Fischer was right


View Profile WWW
April 17, 2019, 07:07:35 PM
 #1

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?

suchmoon
Legendary
*
Offline Offline

Activity: 3710
Merit: 8989


https://bpip.org


View Profile WWW
April 17, 2019, 07:32:49 PM
Merited by poptok1 (1)
 #2

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.
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
April 17, 2019, 09: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?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!