forge
Explore
Log in

Don't you dare go Hollow

The search field wears the dropdown's own type-as-filter input

Browse files at this commit

a303a505a6c0e46ec681203c401fed20b8f445d6Ahmet Kaan GümüşParent: 877208d
The box keeps the filterbar's anatomy — label inline, same geometry as
Sort and Project — and the input inside is the panel search the house
already had: no border of its own, an accent rule when focused, the
value elastic instead of squeezed.
crates/izlek-web/src/board.rsmodified+1 -1
@@ -710,7 +710,7 @@ pub async fn board_page(cx: &Cx, user: &User) -> Result {
710710 <input type="hidden" name="sort" value=(sort.clone())>
711711 <input type="hidden" name="tag" value=(tag_filter.clone().unwrap_or_default())>
712712 <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(""))>
714714 </form>
715715 <div class="spacer"></div>
716716 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 {
19381938 }
19391939 }
19401940
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.
19451945 .field-box-search {
1946- flex: 0 1 190px;
1946+ flex: 0 1 240px;
1947+ min-width: 0;
19471948
19481949 .field-text { flex: none; }
19491950
1950- .field-input {
1951+ .dd-search {
19511952 flex: 1;
19521953 min-width: 0;
1954+ width: auto;
19531955 height: auto;
1956+ margin-bottom: 0;
19541957 padding: 0;
1955- border: none;
1956- background: transparent;
1957-
1958- &:focus-visible {
1959- background: transparent;
1960- border: none;
1961- }
19621958 }
19631959 }
19641960