Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix] simple theme: support browsers which do not have aspect-ratio

Markus Heiserf5e8cfade200
diff --git a/searx/static/themes/simple/src/less/style.less b/searx/static/themes/simple/src/less/style.less
index 43f5e8994..3a3777587 100644
--- a/searx/static/themes/simple/src/less/style.less
+++ b/searx/static/themes/simple/src/less/style.less
@@ -316,6 +316,14 @@ article[data-vim-selected].category-social {
padding: 10px 0 0 0;
}
+@supports not (aspect-ratio: 1 / 1) {
+ // support older browsers which do not have aspect-ratio
+ // https://caniuse.com/?search=aspect-ratio
+ .result-videos .embedded-video iframe {
+ height: calc(@results-width * 9 / 16);
+ }
+}
+
.engines {
.ltr-float-right();
color: var(--color-result-engines-font);