In tables not using toaster tables (i.e. the ones in the build
information pages), the search text field was too long. This patch
reduces its width.

Signed-off-by: Belen Barros Pena <[email protected]>
---
 bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css | 4 ++++
 bitbake/lib/toaster/toastergui/templates/basetable_top.html         | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git 
a/bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css 
b/bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css
index 250ac00..24f6b63 100644
--- a/bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css
+++ b/bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css
@@ -82,6 +82,10 @@ fieldset[disabled] .btn-primary:hover {
   width: 80%;
 }
 
+#search {
+  width: 60%;
+}
+
 /* Definition lists in the layer details page */
 
 #information .dl-horizontal dd {
diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_top.html 
b/bitbake/lib/toaster/toastergui/templates/basetable_top.html
index e64be2d..afd6aad 100644
--- a/bitbake/lib/toaster/toastergui/templates/basetable_top.html
+++ b/bitbake/lib/toaster/toastergui/templates/basetable_top.html
@@ -161,7 +161,7 @@
 <!-- control header -->
 <div class="navbar">
     <div class="navbar-inner">
-        <form class="navbar-search input-append pull-left col-md-6" 
id="searchform">
+        <form class="navbar-search input-append" id="searchform">
             <input id="search" name="search" type="text" placeholder="Search 
{%if object_search_display 
%}{{object_search_display}}{%else%}{{objectname}}{%endif%}" value="{%if 
request.GET.search %}{{request.GET.search}}{% endif %}"/>{% if 
request.GET.search %}<a 
href="javascript:$('#search').val('');searchform.submit()" 
class="input-append-addon btn" tabindex="-1"><i class="glyphicon 
glyphicon-remove"></i></a>{%endif%}
             <input type="hidden" name="orderby" 
value="{{request.GET.orderby}}">
             <input type="hidden" name="page" value="1">
-- 
1.9.1

-- 
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Reply via email to