Style buffer modes like project modes

This commit is contained in:
Piotr Osiewicz 2023-08-14 12:25:59 +02:00
parent 1c35db7e97
commit 8bb3bfa6a8

View file

@ -237,7 +237,8 @@ impl View for BufferSearchBar {
.left() .left()
.top() .top()
.flex(1., true) .flex(1., true)
.constrained(), .constrained()
.with_max_height(theme.search.search_bar_row_height),
) )
.contained(), .contained(),
) )
@ -280,6 +281,7 @@ impl View for BufferSearchBar {
.constrained() .constrained()
.with_min_width(theme.search.editor.min_width) .with_min_width(theme.search.editor.min_width)
.with_max_width(theme.search.editor.max_width) .with_max_width(theme.search.editor.max_width)
.with_max_height(theme.search.search_bar_row_height)
.flex(1., false), .flex(1., false),
) )
.with_child( .with_child(
@ -307,6 +309,8 @@ impl View for BufferSearchBar {
|_, this, cx| this.dismiss(&Default::default(), cx), |_, this, cx| this.dismiss(&Default::default(), cx),
Some(Box::new(Dismiss)), Some(Box::new(Dismiss)),
)) ))
.constrained()
.with_height(theme.search.search_bar_row_height)
.contained() .contained()
.aligned() .aligned()
.right() .right()