XF 2.1 solved-Mobile Portrait Mode in Forum List Latest Post Looks Bad!

ActorMike

Well-known member
I'm trying to find out how I can change my forum list to match my previous format below. The first image is the old style in XF 1.5 and the second image is the XF 2.1. As you can see the Forum name is scrunched in.

old.webp
new.webp
 
When you add things like this:

Code:
.p-pageWrapper .node-extra {
    display: table-cell;
    vertical-align: middle;
    width: 280px;
    padding: 10px;
    font-size: 13px;
    background-color: rgb(242, 223, 255);
    border-radius: 15px 0px 0px 15px;
}

It's no longer considered the default style (default = unedited) :D

Add this to your extra.less template

Code:
@media (max-width: @xf-responsiveMedium) { .p-pageWrapper .node-extra { display: block; } }

Should adjust it for mobile
 
When you add things like this:

Code:
.p-pageWrapper .node-extra {
    display: table-cell;
    vertical-align: middle;
    width: 280px;
    padding: 10px;
    font-size: 13px;
    background-color: rgb(242, 223, 255);
    border-radius: 15px 0px 0px 15px;
}

It's no longer considered the default style (default = unedited) :D
It's amazing when you are doing a major upgrade what changes made are quickly forgotten! lol
 
When you add things like this:

Code:
.p-pageWrapper .node-extra {
    display: table-cell;
    vertical-align: middle;
    width: 280px;
    padding: 10px;
    font-size: 13px;
    background-color: rgb(242, 223, 255);
    border-radius: 15px 0px 0px 15px;
}

It's no longer considered the default style (default = unedited) :D

Add this to your extra.less template

Code:
@media (max-width: @xf-responsiveMedium) { .p-pageWrapper .node-extra { display: block; } }

Should adjust it for mobile
I corrected my CSS. I was using Google Chrome inspector and copied some of the desktop CSS settings. Works fine like this below:

Still not totally satisfied with how the node-extra looks, but it is acceptable. Thanks for getting me in the right directions @Russ


CSS:
.p-body-main {
    background-color: white;
    border-radius: 35px;
}
.node-extra {
     background-color: #f2dfff;
     border-radius: 15px 0px 0px 15px
}
.p-body-inner {
     background-color: white;
}
 
Last edited:
Back
Top Bottom