XF 2.2 Left indentation appeared after upgrade

vwts

Member
Hi!
Left indentation appeared after upgrade 2.1.12 -> 2.2.2. :

otstup1.webp

Sidebar and side navigation width work only "together":

otstup2.jpg

Result: Widget broken

otstup3.jpg

How can you fix this?
Thanks!
 
  • Have you checked in the AdminCP for outdated templates which need to be merged?
  • Does this occur with the Xenforo default style?
  • Check your addons for any that have not been updated for XF 2.2.x. There were substantial changes in 2.2 from 2.1 and there are still some popular addons that are awaiting updates or that may never be updated. Start by disabling ALL your addons and see if the problem is resolved.
 
1. There are no outdated templates.
2. All Installed add-ons disabled.
3. 2 small Template modifications disabled:
1608859933892.png

The same result... :(

P.S. I think I found the problem:
from extra.less (Floating sidebar)
Code:
@fox-sticky-top: 48px;

@media (min-width: (@xf-responsiveWide + 1px)) {
    .p-body-main--withSidebar {
        display: flex;
        align-items: flex-start;

        .p-body-content {
            flex: 1 1 auto;
            display: block;
            width: ~"calc(100% - @xf-sidebarWidth)";
        }

        .p-body-sideNav,
        .p-body-sidebar {
            flex: 0 0 auto;
            display: block;
        }

        @supports ((position: sticky) or (position: -webkit-sticky)){
            .p-body-sidebar {
                position: -webkit-sticky;
                position: sticky;
                top: 10px;
                & when (@xf-publicNavSticky = primary) or (@xf-publicNavSticky = all) {
                    top: @fox-sticky-top * 1px + 10px;
                }
            }
        }
    }
}
 
Last edited:
Back
Top Bottom