diff --git a/engines/google/image.php b/engines/google/image.php index 721ab6a..fe779bf 100644 --- a/engines/google/image.php +++ b/engines/google/image.php @@ -55,7 +55,7 @@ $alt = $result["alt"]; echo ""; - echo ""; + echo ""; echo ""; } diff --git a/misc/tools.php b/misc/tools.php index 94b1af2..a91eae0 100644 --- a/misc/tools.php +++ b/misc/tools.php @@ -8,7 +8,7 @@ function check_for_privacy_friendly_alternative($url) { - $config = require "config.php"; + global $config; if ($config->replace_youtube_with_invidious != null && strpos($url, "youtube.com")) $url = $config->replace_youtube_with_invidious . explode("youtube.com", $url)[1]; @@ -38,7 +38,7 @@ function request($url) { - $config = require "config.php"; + global $config; $ch = curl_init($url); curl_setopt_array($ch, $config->curl_settings); diff --git a/static/css/styles.css b/static/css/styles.css index aa8114e..30ff25b 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -191,14 +191,21 @@ a:hover, .text-result-wrapper h2:hover { } .image-result-container { - margin-left:auto; - margin-right: auto; - margin-bottom: 60px; + display: grid; + grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); + grid-gap: 1.5rem; + justify-items: center; + margin-left: 9%; + margin-right: 9%; + padding: 0; + margin-bottom:50px; } .image-result-container img { - margin: 10px; border: 1px solid var(--button-bg); + width: 350px; + height: 200px; + margin: 10px; } .donate-container { @@ -309,9 +316,7 @@ a:hover, .text-result-wrapper h2:hover { margin-right:auto; } - .image-result-container img { - display:block; - margin-left:auto; - margin-right:auto; + .settings-container { + margin-bottom: 100px; } } \ No newline at end of file