diff options
author | sajolida <sajolida@pimienta.org> | 2014-11-12 11:38:33 +0100 |
---|---|---|
committer | sajolida <sajolida@pimienta.org> | 2014-11-12 11:39:03 +0100 |
commit | 036c081706d598031da3c681e828a0dc4f2d6f17 (patch) | |
tree | ac2f030992cc6f0d973e0fdde27c9b7054a07de5 /doc | |
parent | 17130d367ad0fcf73bfeb26d8889ce462f8538c7 (diff) | |
download | ikiwiki-036c081706d598031da3c681e828a0dc4f2d6f17.tar ikiwiki-036c081706d598031da3c681e828a0dc4f2d6f17.tar.gz |
file bug
Diffstat (limited to 'doc')
-rw-r--r-- | doc/bugs/Impossible_to_resize_text_input_in_search_results.mdwn | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/doc/bugs/Impossible_to_resize_text_input_in_search_results.mdwn b/doc/bugs/Impossible_to_resize_text_input_in_search_results.mdwn new file mode 100644 index 000000000..da4c79841 --- /dev/null +++ b/doc/bugs/Impossible_to_resize_text_input_in_search_results.mdwn @@ -0,0 +1,43 @@ +While working on the [Tails website](https://tails.boum.org/), I didn't +managed to resize the text input on top of the search results. + +This is problematic with our layout and it might be the same for others. +For example, reducing a bit the width of the browser on [this +page](https://tails.boum.org/ikiwiki.cgi?P=testing) makes the search +results jump at the bottom of the page since the text input is wider +(size=65 by default) than the body of the page when side by side with +the sidebar. + +Having CSS selectors to style the elements of this form would solve our +problem. + +Here is a patch: + + From c4c6c9bf3b296c2db10d6fb9e6421d82f341b1cf Mon Sep 17 00:00:00 2001 + From: sajolida <sajolida@pimienta.org> + Date: Sun, 9 Nov 2014 16:48:33 +0100 + Subject: [PATCH] Add classes to form in search results + + This is needed to style it, for example to reduce the width of the text + input and prevent layout issues. + --- + templates/searchquery.tmpl | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + + diff --git a/templates/searchquery.tmpl b/templates/searchquery.tmpl + index 15bc78e..6277266 100644 + --- a/templates/searchquery.tmpl + +++ b/templates/searchquery.tmpl + @@ -33,8 +33,8 @@ $def{NEXT,$if{$ne{$last,$msize},<INPUT TYPE=submit NAME=">" VALUE="Next">}} + + <FORM NAME=P METHOD=GET + ACTION="$html{$env{CGIURL}}" TARGET="_top"> + -<div style="text-align:center"> + -<INPUT NAME=P VALUE="$html{$query}" SIZE=65> + +<div class="searchquery" style="text-align:center"> + +<INPUT class="searchbox" NAME=P VALUE="$html{$query}" SIZE=65> + <INPUT TYPE=SUBMIT VALUE="Search"> + $env{HELPLINK} + <hr> + -- + 2.1.1 |