diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2022-02-07 16:16:57 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-02-13 14:20:47 +0100 |
commit | 46e131fdadd94910c0e258aa4e855ad8019edbf7 (patch) | |
tree | 3e4de6dae4274331631bfefb3e3446e13bc9c022 /searx/static/themes/simple/src/less/style.less | |
parent | a4942213a1dc6404616e239e0d2fb55a6e19a499 (diff) | |
download | searxng-46e131fdadd94910c0e258aa4e855ad8019edbf7.tar.gz searxng-46e131fdadd94910c0e258aa4e855ad8019edbf7.zip |
[mod] result_templates/videos.html: replace embedded HTML by data_src
Embedded HTML breaks SearXNG architecture. To modularize, HTML is generated in
the templates (oscar & simple) and result parameter 'embedded' is replaced by
'data_src', an URL for embedded content (<iframe>).
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/static/themes/simple/src/less/style.less')
-rw-r--r-- | searx/static/themes/simple/src/less/style.less | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/searx/static/themes/simple/src/less/style.less b/searx/static/themes/simple/src/less/style.less index 59b74aabe..20662c1af 100644 --- a/searx/static/themes/simple/src/less/style.less +++ b/searx/static/themes/simple/src/less/style.less @@ -300,6 +300,12 @@ article[data-vim-selected].category-social { overflow: hidden; } +.result-videos .embedded-video iframe { + width: 100%; + aspect-ratio: 16 / 9; + padding: 10px 0 0 0; +} + .engines { .ltr-float-right(); color: var(--color-result-engines-font); |