The Bug
Take a look at the following images:
(1) In image 1, you’ll see that the timeline slider is overlayed on posts at the left margin (that’s the bug)
(2) In image 2, you can see the timeline slider is positioned where it should be, off to the right.
(3) Here is a zoomed/highlighted copy of the bug:
The Cause
The hosting <div>
element with class container posts
has the following CSS class definition:
.container.posts {
display: grid;
grid-template-areas: "posts timeline";
grid-template-columns: auto auto;
margin-bottom: var(--below-topic-margin);
}
Which looks fine. But, under some circumstance, something (probably JavaScript code) adds an inline style to that div, completely destroying the display properties:
That display:block
overrides the display:grid
setting which breaks the rendering of the timeline.
To Reproduce
For me, at least, this usually happens when I make a post. After hitting submit, the page is rerendered to show my post and the timeline moves over to the left on top of the posts. Inspecting the DOM shows the addition of display:block;
to the <div>
mentioned above.
This behavior has been present ever since the initial redesign of the forum. Today I decided to take a look and figure out the cause.