The search field wears the dropdown's own type-as-filter input
Browse files at this commita303a505a6c0e46ec681203c401fed20b8f445d6Parent: 877208d2 changed files +10 -14
- crates/izlek-web/src/board.rs +1 -1
- style/main.scss +9 -13
crates/izlek-web/src/board.rsmodified+1 -1
| @@ -710,7 +710,7 @@ pub async fn board_page(cx: &Cx, user: &User) -> Result { | ||
| 710 | 710 | <input type="hidden" name="sort" value=(sort.clone())> |
| 711 | 711 | <input type="hidden" name="tag" value=(tag_filter.clone().unwrap_or_default())> |
| 712 | 712 | <span class="field-text">(t(lang, Key::Search))</span> |
| 713 | - <input class="field-input" type="search" name="q" value=(search.as_deref().unwrap_or(""))> | |
| 713 | + <input class="dd-search" type="text" name="q" value=(search.as_deref().unwrap_or(""))> | |
| 714 | 714 | </form> |
| 715 | 715 | <div class="spacer"></div> |
| 716 | 716 | if overdue > 0 { <span class="chip chip-overdue">(format!("{overdue} {}", t(lang, Key::Overdue)))</span> } |
style/main.scssmodified+9 -13
| @@ -1938,27 +1938,23 @@ img.avatar { | ||
| 1938 | 1938 | } |
| 1939 | 1939 | } |
| 1940 | 1940 | |
| 1941 | -// The board's search field wears the same recessed box as the Sort and | |
| 1942 | -// Project selects; the input inside gives up its own border and height the | |
| 1943 | -// way the selects do, and the box shrinks before the chips do when the | |
| 1944 | -// 390px rail wraps. | |
| 1941 | +// The board's search field is the bar's third field-box, and its typing | |
| 1942 | +// area is the house's own type-as-filter input: the rules `.dd-search` | |
| 1943 | +// wears inside dropdown panels, freed of the panel-only block geometry and | |
| 1944 | +// filling the box past its label. | |
| 1945 | 1945 | .field-box-search { |
| 1946 | - flex: 0 1 190px; | |
| 1946 | + flex: 0 1 240px; | |
| 1947 | + min-width: 0; | |
| 1947 | 1948 | |
| 1948 | 1949 | .field-text { flex: none; } |
| 1949 | 1950 | |
| 1950 | - .field-input { | |
| 1951 | + .dd-search { | |
| 1951 | 1952 | flex: 1; |
| 1952 | 1953 | min-width: 0; |
| 1954 | + width: auto; | |
| 1953 | 1955 | height: auto; |
| 1956 | + margin-bottom: 0; | |
| 1954 | 1957 | padding: 0; |
| 1955 | - border: none; | |
| 1956 | - background: transparent; | |
| 1957 | - | |
| 1958 | - &:focus-visible { | |
| 1959 | - background: transparent; | |
| 1960 | - border: none; | |
| 1961 | - } | |
| 1962 | 1958 | } |
| 1963 | 1959 | } |
| 1964 | 1960 |