Fix borders being cut off in buffer search
This commit is contained in:
parent
8bb3bfa6a8
commit
94ac84a908
1 changed files with 20 additions and 10 deletions
|
@ -300,18 +300,28 @@ impl View for BufferSearchBar {
|
||||||
Flex::column().with_child(
|
Flex::column().with_child(
|
||||||
Flex::row()
|
Flex::row()
|
||||||
.align_children_center()
|
.align_children_center()
|
||||||
.with_child(search_button_for_mode(SearchMode::Text, cx))
|
.with_child(
|
||||||
.with_child(search_button_for_mode(SearchMode::Regex, cx))
|
Flex::row()
|
||||||
.with_child(super::search_bar::render_close_button(
|
.with_child(search_button_for_mode(SearchMode::Text, cx))
|
||||||
"Dismiss Buffer Search",
|
.with_child(search_button_for_mode(SearchMode::Regex, cx))
|
||||||
&theme.search,
|
.aligned()
|
||||||
cx,
|
.left()
|
||||||
|_, this, cx| this.dismiss(&Default::default(), cx),
|
.contained()
|
||||||
Some(Box::new(Dismiss)),
|
.with_margin_right(3.),
|
||||||
))
|
)
|
||||||
|
.with_child(
|
||||||
|
super::search_bar::render_close_button(
|
||||||
|
"Dismiss Buffer Search",
|
||||||
|
&theme.search,
|
||||||
|
cx,
|
||||||
|
|_, this, cx| this.dismiss(&Default::default(), cx),
|
||||||
|
Some(Box::new(Dismiss)),
|
||||||
|
)
|
||||||
|
.aligned()
|
||||||
|
.right(),
|
||||||
|
)
|
||||||
.constrained()
|
.constrained()
|
||||||
.with_height(theme.search.search_bar_row_height)
|
.with_height(theme.search.search_bar_row_height)
|
||||||
.contained()
|
|
||||||
.aligned()
|
.aligned()
|
||||||
.right()
|
.right()
|
||||||
.top()
|
.top()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue