diff --git a/templates/zephyr/navbar.html b/templates/zephyr/navbar.html index dbe88c7e06..b73fc81e5d 100644 --- a/templates/zephyr/navbar.html +++ b/templates/zephyr/navbar.html @@ -13,10 +13,11 @@ {# /searchbox #} diff --git a/zephyr/static/js/search.js b/zephyr/static/js/search.js index 2788e7ffc4..15eecd8f38 100644 --- a/zephyr/static/js/search.js +++ b/zephyr/static/js/search.js @@ -149,23 +149,9 @@ function update_buttons_with_focus(focused) { if (focused || search_query.val() || narrow.active()) { - - if ($('.search_button').is(':visible')) { - // Already visible, and the width manipulation below - // will break if we do it again. - return; - } - // Shrink the searchbox to make room for the buttons. - var new_width = search_query.width() - - $('.search_button').outerWidth(true); - search_query.width(new_width-1); - $("#search_arrows").addClass("input-append"); - $('.search_button').show(); + $('.search_button').removeAttr('disabled'); } else { - // Hide buttons. - $('#search_query').width(''); - $("#search_arrows").removeClass("input-append"); - $('.search_button').blur().hide(); + $('.search_button').attr('disabled', 'disabled'); } } diff --git a/zephyr/static/styles/zephyr.css b/zephyr/static/styles/zephyr.css index 655ba7ae40..e49546ebc7 100644 --- a/zephyr/static/styles/zephyr.css +++ b/zephyr/static/styles/zephyr.css @@ -615,7 +615,12 @@ input.recipient_box { cursor: pointer; } +#navbar-middle { + display: table-row; +} + .brand.skinny-user-gravatar { + display: table-cell; padding-top: 5px; padding-bottom: 0px; margin-bottom: 5px; @@ -671,6 +676,7 @@ input.recipient_box { } #search_arrows { + width: 99%; margin-bottom: 5px; /* Bootstrap wants font-size: 0 to eliminate space between @@ -681,19 +687,10 @@ input.recipient_box { } #searchbox .search_button { - display: none; text-align: center; padding: 4px 10px 4px 10px; } -/* A cheat, because input-prepend and input-append aren't - smart enough to do the right thing with search-query */ -#searchbox .search_button_middle { - border-radius: 0; - -webkit-border-radius: 0; - -moz-border-radius: 0; -} - #floating_recipient_bar { position: fixed; /* .message_list max-width */