Rework the new Go button on the search form so that it actually stands
authorTom Hughes <tom@compton.nu>
Mon, 5 May 2008 16:39:33 +0000 (16:39 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 5 May 2008 16:39:33 +0000 (16:39 +0000)
some chance of rendering as intended.

It's still not really ideal to steal space from the seach box of course...

Closes #589.

app/views/site/_search.rhtml
public/stylesheets/site.css

index 43853dcf028b3293e531aa1e546dfd42c69e6b28..f18587f737e2478dd4e0d77256f1d06a0df95930 100644 (file)
     <% form_remote_tag(:loading => "startSearch()",
                        :complete => "endSearch()",
                        :url => { :controller => :geocoder, :action => :search }) do %>
-      <%= text_field_tag :query, h(params[:query]) %>
-  
-      <%= submit_tag 'Go' %></td>
-      <% end %>
+      <table>
+        <tr>
+          <td><%= text_field_tag :query, h(params[:query]) %></td>
+          <td></td>
+          <td><%= submit_tag 'Go' %></td>
+        </tr>
+      </table>
+    <% end %>
     </span>
     <p id="search_active">Searching...</p>
     </div>
index e1b877e039b3dc48ff34492b34e56bdca093f228..2ede490efc557377171b7deecc156fa285495741 100644 (file)
@@ -354,14 +354,18 @@ hides rule from IE5-Mac \*/
   padding: 0px;
 }
 
+.optionalbox input {
+  width: 100%;
+}
 
-.optionalbox input[type="text"] {
-  width: 110px;
+.optionalbox td {
+  margin: 0px;
+  padding: 0px;
 }
 
 .search_form {
   height: 16px;
-  padding-bottom: 2px;
+  padding-bottom: 6px;
 }
 
 #search_active {