diff --git a/crates/in-web/src/drive.rs b/crates/in-web/src/drive.rs index 7805c31..bbc410e 100644 --- a/crates/in-web/src/drive.rs +++ b/crates/in-web/src/drive.rs @@ -454,6 +454,12 @@ async fn drive(cx: &Cx) -> Result { None => None, }; let box_text = asked.clone().unwrap_or_default(); + // The search mode tell: rendered inside the results panel, never in the + // filterbar — the bar keeps one shape whether the list below is a folder + // or hits, so typing in the box never reshuffles the controls around it. + let caption = asked + .as_deref() + .map(|query| format!("{} “{query}”", t(language, Key::SearchResults))); let current = current_folder(store.as_ref(), &user.id, wanted.as_deref()).await?; let crumbs = breadcrumbs(store.as_ref(), current.as_ref()).await; let mut listing = match store @@ -567,18 +573,18 @@ async fn drive(cx: &Cx) -> Result { (topbar(cx, NavPage::Drive, &user, language).await?)
- if let Some(query) = asked.as_deref() { -

(t(language, Key::SearchResults)) (format!(" “{query}”"))

- } else { - if current.is_some() { - - } + // The bar's children stay the same set in every mode — a + // leading element that comes and goes would shift the morph's + // positional pairing and shuffle the forms into each other. + // The search caption lives in the results panel instead. + if asked.is_none() && current.is_some() { + }