]> git.plutz.net Git - serve0/commitdiff
avoid white spaces between previews to better apply css width
authorpaul <paul@plutz.net>
Wed, 1 Nov 2017 23:41:33 +0000 (23:41 +0000)
committerpaul <paul@plutz.net>
Wed, 1 Nov 2017 23:41:33 +0000 (23:41 +0000)
svn path=/trunk/; revision=192

pages/list.sh

index 1636bd611136cccf3fddf6aa07bdae1eb7757e0d..07d6d8c737b838901a7cb520edf8a0b3eeafae1b 100755 (executable)
@@ -79,18 +79,18 @@ _printVideo(){
 
     minutes="$(printf "%d:%02d" $(($length / 60)) $(($length % 60)) )"
 
-    tee "$cache" <<VIDEOend
-      <li id="$attrinfo" class="thumb">
-        <button class="watchlink" name="${linkinfo}" formaction="?action=watch&i=${linkinfo}">
-          <img src="$thumb" alt="Preview not yet available">
-        </button>
-        <h2><a href="?action=watch&i=${linkinfo}">${htmlinfo}</a></h2>
-        
-        <input type="checkbox" name="tagsel" value="${htmlinfo}">
-        <span class="info property">${minutes}min</span>
-        <span class="info property">${width}x${height}</span>
-       $(printf %s "$tags" |sed -r 's:\|*([^|]+)\|*: <span class="info tag">\1</span>:g')
-      </li>
+    { tr -d '\n' |tee "$cache"; } <<-VIDEOend
+       <li id="$attrinfo" class="thumb">
+         <button class="watchlink" name="${linkinfo}" formaction="?action=watch&i=${linkinfo}">
+           <img src="$thumb" width="212" height="162" alt="Preview not yet available">
+         </button>
+         <h2><a href="?action=watch&i=${linkinfo}">${htmlinfo}</a></h2>
+         
+         <input type="checkbox" name="tagsel" value="${htmlinfo}">
+         <span class="info property">${minutes}min</span>
+         <span class="info property">${width}x${height}</span>
+         $(printf %s "$tags" |sed -r 's:\|*([^|]+)\|*: <span class="info tag">\1</span>:g')
+       </li>
 VIDEOend
   fi
 }