• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 adding thread preview tooltip to sidebar "new posts" widget

I really love XenForo post preview tooltip when browsing a forum and hovering over a topic title. I'm trying to add the same feature to the sidebar widget. I managed to do this adding the tooltip code to the sidebar's links:

class="{xen:if $thread.hasPreview, PreviewTooltip}"
                    data-previewUrl="{xen:if $thread.hasPreview, {xen:link threads/preview, $thread}}"
However, the tooltip is too big when the browsers's width is shrunk:

Any idea how to fix this ?


Fixed !
Style proprety > Preview Tooltip
Set max-width: 400px instead of width:400px

But it would be better if there was a way to change the direction of the tooltip instead