Selectively add left and right padding only for letterboxed thumbnails.
This commit is contained in:
parent
e3dc3578a4
commit
f59076af0f
|
@ -146,10 +146,13 @@ div.thumb, div.details {
|
|||
z-index: 20;
|
||||
}
|
||||
div.thumb {
|
||||
padding: 0px 10px 0px 10px;
|
||||
padding: 0px;
|
||||
position: relative;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
div.letterbox {
|
||||
padding: 0px 10px;
|
||||
}
|
||||
div.thumb img {
|
||||
display: block;
|
||||
padding-right: 0px;
|
||||
|
|
|
@ -233,7 +233,7 @@ function print_video($video,$settings,$mobile,$show_seen)
|
|||
}
|
||||
$html .= "
|
||||
$default" . '
|
||||
<div class="thumb" id="thumbnail:' . $video['videoId'] . '">
|
||||
<div class="thumb' . ($settings['thumbnail_quality'] == 'maxresdefault' ? '' : ' letterbox') . '" id="thumbnail:' . $video['videoId'] . '">
|
||||
<img src="https://i.ytimg.com/vi/' . $video['videoId'] . '/' . ($settings['thumbnail_quality'] ? $settings['thumbnail_quality'] : 'default') . '.jpg"/>
|
||||
<div class="time">
|
||||
<h4>' . $video['lengthText'] . '</h4>
|
||||
|
|
Loading…
Reference in New Issue