XF 2.2 [RESOLVED] List of threads got moved over to the side

CZ Eddie

Active member
Did a forum upgrade last night and threads/posts all got moved to the right side of the screen for desktop users.
Which style property do I adjust this at?
MS Paint example of what the forum looks like now--->
1718033857875.webp


edit: Fix is in post 12
 
Last edited:
Solution
The issue was resolved when a friend said to change this:
Code:
.p-body-main
{
    display: table;

To this:
Code:
.p-body-main
{
    display: block;

Thanks everyone
That doesn't look like something that could just happen in Style Properties - upgrade or not.

You should post a link to the URL then it may be obvious what's wrong but somehow .p-body-main may have got a rogue left margin
 
Thank you. But it looks like my extra.less is blank. I think that's where p-body-main would be? Nothing there at all.

Unfortunately, it's a closed site so you wouldn't be able to view the issue.

The default style is fine. It's just my custom styles that went wonky.
Everyone uses the custom style as it's heavily customized for the website legacy.
 
The extra.less template is blank be default.
All less code are in the core templates.

It's being caused by these 2 custom lines:

1718038792947.webp

Check for modified templates.
 
And did you try with all addons disabled?
Yep! I disabled all addons before upgrading and haven't re-enabled them yet.

Just went through all the styles that looked reasonable and reverted those.
Still have the same issue.

It's been over five years since I've touched theming. Wish I could find my notes on it.
 
I don't think it matters, but I'm making all these new changes/reverts on a copy of the original style.

I created a new style today and made it a "child" of the original style.
That way I could do all this troubleshooting without affecting users.
 
The issue was resolved when a friend said to change this:
Code:
.p-body-main
{
    display: table;

To this:
Code:
.p-body-main
{
    display: block;

Thanks everyone
 
Solution
Back
Top Bottom