ddl_large ONLY if its meats 1080p (exact)

This commit is contained in:
Lain Iwakura 2016-09-10 18:35:45 -04:00
parent c98860e989
commit 632a20f8b9
2 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class PostHelper extends Rails\ActionView\Helper
$li_class = "";
$ddl_class = "directlink";
$ddl_class .= ($post->width > 1500 || $post->height > 1500)? " largeimg":" smallimg";
$ddl_class .= ($post->width > 1920 || $post->height > 1080 )? " largeimg":" smallimg";
if (!empty($options['similarity'])) {
$icon = '<img src="'.$post->service_icon().'" alt="'.$post->service().'" class="service-icon" id="source">';

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 B

After

Width:  |  Height:  |  Size: 1.2 KiB