summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2024-10-07 09:55:39 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-10-12 11:08:44 +0200
commit2fbedc4316b4e8a8bce8bb9506f59aa61e1a2666 (patch)
tree5deba09caec0058fdb05944bf2e6bf6057a69ad7 /searx
parentbafb92e6463a5226182c7acd6bb3fc7fbb63ab63 (diff)
downloadsearxng-2fbedc4316b4e8a8bce8bb9506f59aa61e1a2666.tar.gz
searxng-2fbedc4316b4e8a8bce8bb9506f59aa61e1a2666.zip
[fix] simple theme: fix deformed result item
Setting ``box-sizing: border-box;`` [1] and ``width`` to fix deformed results reported in [2]. [1] https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing [2] https://github.com/searxng/searxng/issues/3892 Closes: #3892 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx')
-rw-r--r--searx/static/themes/simple/src/less/style.less5
1 files changed, 4 insertions, 1 deletions
diff --git a/searx/static/themes/simple/src/less/style.less b/searx/static/themes/simple/src/less/style.less
index 857ea4a28..def08f646 100644
--- a/searx/static/themes/simple/src/less/style.less
+++ b/searx/static/themes/simple/src/less/style.less
@@ -170,6 +170,8 @@ article[data-vim-selected].category-social {
.result {
margin: @results-margin 0;
padding: @result-padding;
+ box-sizing: border-box;
+ width: 100%;
.ltr-border-left(0.2rem solid transparent);
h3 {
@@ -1096,7 +1098,8 @@ summary.title {
.result {
background: var(--color-result-background);
border: 1px solid var(--color-result-background);
- margin: 1rem 10px;
+ margin: 1rem 2%;
+ width: 96%;
.rounded-corners;
}