outline panel: Improve the search query header design (#25283)
Fine-tuning alignment and spacing. | Before | After | |--------|--------| |  |  | Release Notes: - N/A
This commit is contained in:
parent
4151b5b12b
commit
3c8dbaf06b
1 changed files with 10 additions and 7 deletions
|
@ -4950,13 +4950,16 @@ impl Render for OutlinePanel {
|
|||
.track_focus(&self.focus_handle)
|
||||
.when_some(search_query, |outline_panel, search_state| {
|
||||
outline_panel.child(
|
||||
v_flex()
|
||||
.child(
|
||||
Label::new(format!("Searching: '{}'", search_state.query))
|
||||
.color(Color::Muted)
|
||||
.mx_2(),
|
||||
)
|
||||
.child(horizontal_separator(cx)),
|
||||
h_flex()
|
||||
.py_1p5()
|
||||
.px_2()
|
||||
.h(DynamicSpacing::Base32.px(cx))
|
||||
.flex_shrink_0()
|
||||
.border_b_1()
|
||||
.border_color(cx.theme().colors().border)
|
||||
.gap_0p5()
|
||||
.child(Label::new("Searching:").color(Color::Muted))
|
||||
.child(Label::new(format!("'{}'", search_state.query))),
|
||||
)
|
||||
})
|
||||
.child(self.render_main_contents(query, show_indent_guides, indent_size, window, cx))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue