diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index ae77843..c6ba59a 100755 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -1328,6 +1328,10 @@ a.directlink { white-space: nowrap; } +a.extremeimg { + background: #111; +} + a.largeimg { background: #111; } @@ -1344,6 +1348,10 @@ a.largeimg:hover { background-image: none; } +a.extremeimg:hover { + background-image: none; +} + a.directlink > span.directlink-res { display: none; margin: 0; @@ -1375,8 +1383,9 @@ a.directlink:hover > .directlink-info { .has-parent .directlink-icon { display: none; } .flagged .directlink-icon { display: none; } .pending .directlink-icon { display: none; } -.largeimg .directlink-icon-small { display: none; } -.smallimg .directlink-icon-large { display: none; } +.extremeimg .directlink-icon-small .directlink-icon-large { display: none; } +.largeimg .directlink-icon-small .directlink-icon-uhd { display: none; } +.smallimg .directlink-icon-large .directlink-icon-uhd { display: none; } .similar .directlink-icon { display: none; } diff --git a/app/helpers/PostHelper.php b/app/helpers/PostHelper.php index 894873d..bd775bf 100755 --- a/app/helpers/PostHelper.php +++ b/app/helpers/PostHelper.php @@ -80,6 +80,7 @@ class PostHelper extends Rails\ActionView\Helper $directlink_info = ' + @@ -91,7 +92,13 @@ class PostHelper extends Rails\ActionView\Helper $li_class = ""; $ddl_class = "directlink"; - $ddl_class .= ($post->width > 1920 || $post->height > 1500 )? " largeimg":" smallimg"; + + if ($post->width >= 3500 || $post->height >= 2600 ) + $ddl_class .= " extremeimg" + elseif ($post->width >= 1920 || $post->height >= 1500 ) + $ddl_class .= " largeimg" + else + $ddl_class .= " smallimg"; if (!empty($options['similarity'])) { $icon = ''.$post->service().''; diff --git a/public/images/ddl.gif b/public/images/ddl.gif index 04a7e5d..f5a8818 100755 Binary files a/public/images/ddl.gif and b/public/images/ddl.gif differ diff --git a/public/images/ddl_large.gif b/public/images/ddl_large.gif index 97c0423..0809c1b 100755 Binary files a/public/images/ddl_large.gif and b/public/images/ddl_large.gif differ