Template talk:Main Page Layout

From Kerbal Space Program Wiki
Jump to: navigation, search

Scrolling the planet box

Something which bugs me about the current Main Page, is that the planet box forces the entire page into horizontal scrolling mode unless you have a very wide browser window. I appreciate that many people are on wide screen displays these days, as am I, but it looks bad when your window is narrow. Personally, I almost always use my widescreen display with 2 portrait-format windows side by side, and almost never with my windows actually in widescreen format. I'm certain that I'm not alone in that. Here is a suggested change for consideration, which makes the planet box horizontally scrollable, so that the remainder of the page does not scroll (and it also adds a class to the containing box, which I regard as good practice):

https://wiki.kerbalspaceprogram.com/index.php?title=Template:Main_Page_Layout/sandbox&diff=64276&oldid=64275

I don't know about anyone else, but I just find it ugly when a single piece of content overflows right off the side of the browser window, and the majority of the content fits just fine. I think the planets look good at the size they are right now, so enabling them to scroll without overflow on narrower windows seems like a good solution.

--Murph (talk) 22:19, 5 June 2015 (UTC)

Do you know of a way to prevent that an unnecessary scollbar is shown (e.g. if you window is wide enough)? — xZise [talk] 16:24, 8 June 2015 (UTC)
Ahhh, good catch. I don't have that problem, as OS X auto-hides all scroll bars by default (everywhere, which took a lot of getting used to, but I've grown to like it). I've changed the sandbox version to "overflow-x: auto;", which may improve things for you. Apologies, I just quickly tried out "scroll" from memory, and forgot the alternative "auto" option.
https://wiki.kerbalspaceprogram.com/index.php?title=Template:Main_Page_Layout/sandbox&diff=64496&oldid=64275 (diff from current to version with "auto" in it).
--Murph (talk) 16:33, 8 June 2015 (UTC)
That seems to work :) And on my Fedora, Firefox and Nautilus (which are the only ones I quickly checked) also display no scroll bars if they are not necessary ;) If I don't forget I'll add that to the actual main page. — xZise [talk] 20:58, 8 June 2015 (UTC)
Excellent, thanks. :) You can put a tick against Safari, Chrome, and Firefox on OS X. It looks nice in all of them, scrolling works when narrow enough to need it, window resizing doesn't seem to create any oddities, nothing obviously broken. --Murph (talk) 21:19, 8 June 2015 (UTC)
[X] Applied. — xZise [talk] 22:47, 10 June 2015 (UTC)
Thanks :) --Murph (talk) 22:56, 10 June 2015 (UTC)