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

ungovernable

Active member
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:

Code:
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:
upload_2016-2-21_17-32-6.webp

Any idea how to fix this ?
 

Attachments

  • upload_2016-2-21_17-21-39.webp
    upload_2016-2-21_17-21-39.webp
    88.9 KB · Views: 3
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
 
Back
Top Bottom