fix thumbnail height style. Make thumbnail clickable.

This commit is contained in:
Isaac Connor 2020-08-24 09:32:49 -04:00
parent 8ea806e264
commit 0e9c8a35e6
1 changed files with 5 additions and 3 deletions

View File

@ -294,10 +294,12 @@ for( $monitor_i = 0; $monitor_i < count($displayMonitors); $monitor_i += 1 ) {
$streamSrc = $Monitor->getStreamSrc(array('scale'=>$scale));
$thmbWidth = ( $options['width'] ) ? 'width:'.$options['width'].'px;' : '';
$thmbHeight = ( $options['height'] ) ? 'width:'.$options['height'].'px;' : '';
$thmbHeight = ( $options['height'] ) ? 'height:'.$options['height'].'px;' : '';
$imgHTML = '<div class="colThumbnail zoom-right"><img id="thumbnail' .$Monitor->Id(). '" src="' .$stillSrc. '" style='
.$thmbWidth.$thmbHeight. '" stream_src="' .$streamSrc. '" still_src="' .$stillSrc. '"/></div>';
$imgHTML = '<div class="colThumbnail zoom-right"><a';
$imgHTML .= $stream_available ? ' href="?view=watch&amp;mid='.$monitor['Id'].'">' : '>';
$imgHTML .= '<img id="thumbnail' .$Monitor->Id(). '" src="' .$stillSrc. '" style="'
.$thmbWidth.$thmbHeight. '" stream_src="' .$streamSrc. '" still_src="' .$stillSrc. '"/></a></div>';
}
?>
<td class="colName">