Browse Source

made image search prettier

hnhx 3 years ago
parent
commit
6e7272bf27
2 changed files with 2 additions and 3 deletions
  1. 1 1
      search_frame.php
  2. 1 2
      static/styles.css

+ 1 - 1
search_frame.php

@@ -83,7 +83,7 @@
                     $alt = $result["alt"];
     
                     echo "<a title=\"$alt\" href=\"data:image/jpeg;base64,$src\" target=\"_blank\">";
-                    echo "<img src=\"data:image/jpeg;base64,$src\">";
+                    echo "<img src=\"data:image/jpeg;base64,$src\" width=\"350\" height=\"200\">";
                     echo "</a>";
                 }
 

+ 1 - 2
static/styles.css

@@ -198,7 +198,7 @@ img {
         margin-top:1px;
     }
 
-    .result-container h2:hover { 
+    .result-container h2:hover {
         text-decoration: underline; 
     }
 
@@ -215,7 +215,6 @@ img {
         margin-bottom:30px;
         
         max-height: 100vh;
-        max-width: 84%;
     }
 
 /* .image-result-container END */