Style buffer modes like project modes
This commit is contained in:
parent
1c35db7e97
commit
8bb3bfa6a8
1 changed files with 5 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue