Keep the search box from overflowing in skinny windows

A hack, but better than the status quo.

(imported from commit 3a523904ffee7b2c64e5fc118eeb8e2f7575541c)
This commit is contained in:
Reid Barton 2013-01-17 10:12:17 -05:00
parent 9f93d9f46b
commit ef8c7d78ac
1 changed files with 10 additions and 0 deletions

View File

@ -459,6 +459,16 @@ input.recipient_box {
#search_query { #search_query {
width: 95%; width: 95%;
} }
@media (max-width: 480px) {
/* This is a hack to keep the search box from overflowing outside the
message area -- really the formula should be something like
[message area width] - [search query horizontal overhead]
At narrow widths, the overhead is a larger % of the window width.
*/
#search_query {
width: 90%;
}
}
.highlight { .highlight {
background-color: #FCEA81; background-color: #FCEA81;