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

#1
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.png

Any idea how to fix this ?
 

Attachments

#2
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
 
Top