XF 2.2 CSS Or Layout Issues

Ozzy47

Well-known member
Okay, I have an addon that allows users to preview threads on the thread list. Addon adds an icon that you click, which opens the preview. Addon is here, https://xenforo.com/community/resources/ozzmodz-thread-preview.5754/

Icon Example:
threadpreviewicon.webp

Preview Example:
threadpreviewexample.webp

Now this works in 2.1 and 2.2 but in 2.2 there are display issues. It moves the last poster avatar to a new line.
threadpreview22.webp

This is of course unacceptable. This is the bit of CSS that is causing the layout issues.
CSS:
.jpreviewreplace {
    display: table-caption !important;
    width: auto;
    caption-side: bottom;
}

It has something to do with, display: table-caption !important;

I just have no clue how to solve it.
 
Hey bud, after going through the template you stated, I was able to locate the issue, it is as simple as doing the following;

Replace the following code;
CSS:
.jpreviewreplace {
    display: table-caption !important;
    width: auto;
    caption-side: bottom;
}

With this one;
CSS:
.jpreviewreplace {
    list-style: none;
    margin: 0;
    padding: 0;
    float: right;
    margin-left: 5px;
}

In the "j_threadpreview_post.less" template.
Sadly no one helped you on time, I hope you had already fixed the issue, if not, I hope I was of some help. Best of luck with your forum!
 
Appreciate the response. I had figured out a workaround. But I don’t remember what I did, the addon has been given back to the original developer.
 
Got it, thanks. And keep it up with the resources you have planned, I’ve seen your current ones and they are pretty useful. Have a nice day.
 
Top Bottom