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

Fixed Inconsistent attachment thumbnail dimensions

Optic

Well-known member
#1
Increasing the Attachment Thumbnail Dimensions setting in Home -> Options -> Attachments from the default value of 100 to a higher value also unexpectedly increases the size of the thumbnails in the area listing all attachments for a given post.

This results in the name of the attachments being truncated, and also adds significant padding around the generic attachment thumbnail.
attachment-thumbnail-title-trunctated.jpg

I'm uncertain if this is by design. If it is, there doesn't appear to be an obvious option to change this behaviour to prevent these particular thumbnails from also increasing in size.
 
Last edited:

Mike

XenForo developer
Staff member
#2
I'm not sure if the width is something we can change based on the thumbnail size.

Otherwise, the thumbnail size is respected here intentionally.
 

Optic

Well-known member
#3
Thanks for your response Mike.

I worked around the truncated title issue by tweaking the thumbnail size from 500px to 600px which makes it fit better now:
attachment-thumbnail-title.jpg
But it would be nice if there was a separate option to override the thumbnail size for those Attached Files thumbnails as they appear to be hard-coded to always be 50% of the Attachment Thumbnail Dimensions option.

I realise that the Attached Files thumbnails will only appear for attached images that haven't been embedded directly into a given post.

The problem is if I reduce that option back to the default value of 100 to get small Attached Files thumbnails again...
default-attached-files-thumbnails.jpg

then embedded image thumbnails would go back to the tiny 100px, which would defeat the reason why I changed this value in the first place:
default-thumbnail.jpg

tl;dr
Is it possible to use CSS to override the width/height of the Attached Files thumbnails regardless of the value set in Attachment Thumbnail Dimensions or would that require a core file edit?
 

Mike

XenForo developer
Staff member
#4
The attached files block still takes into account the thumb size to a point, but it's now capped at being no larger than 100px (which would apply for 200x200 thumbs).