Adjust posiiton and wrapping of search poopup

This commit is contained in:
2026-02-25 13:46:02 +01:00
parent 852e04d517
commit d2940b90d0
2 changed files with 16 additions and 5 deletions

View File

@@ -170,9 +170,12 @@
/* .JSpopup */ /* .JSpopup */
div.ajax_qsearch { div.ajax_qsearch {
position: absolute; position: absolute;
top: 0; top: 100%;
left: -13.5em; /* -( width of #qsearch__in + padding of .ajax_qsearch + a bit more ) */ left: 0;
width: 12em; right: auto;
width: 18em;
box-sizing: border-box;
margin-top: .2em;
padding: 0.5em; padding: 0.5em;
font-size: .9em; font-size: .9em;
z-index: 20; z-index: 20;
@@ -197,11 +200,17 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
display: block !important; display: block !important;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
ul.search-suggestions li a { ul.search-suggestions li a {
display: block; display: block;
padding: .15em .25em; padding: .15em .25em;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
ul.search-suggestions li.is-active > a, ul.search-suggestions li.is-active > a,
@@ -219,6 +228,9 @@
ul.search-suggestions li.is-empty { ul.search-suggestions li.is-empty {
padding: .15em .25em; padding: .15em .25em;
color: @ini_text_alt; color: @ini_text_alt;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
strong { strong {
@@ -241,6 +253,6 @@
[dir=rtl] .dokuwiki form.search div.ajax_qsearch { [dir=rtl] .dokuwiki form.search div.ajax_qsearch {
left: auto; left: auto;
right: -13.5em; right: 0;
text-align: right; text-align: right;
} }

View File

@@ -183,7 +183,6 @@
} }
.dokuwiki form.search div.ajax_qsearch { .dokuwiki form.search div.ajax_qsearch {
top: -.35em;
font-size: 1em; font-size: 1em;
text-overflow: ellipsis; text-overflow: ellipsis;
} }