mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 18:31:37 +03:00
buffer: finish up moving things around
This commit is contained in:
parent
e1724daf35
commit
b282bdfe5a
@ -211,14 +211,17 @@ impl View for BufferSearchBar {
|
|||||||
))
|
))
|
||||||
.aligned()
|
.aligned()
|
||||||
.left()
|
.left()
|
||||||
.top(),
|
.top()
|
||||||
|
.flex(1., true)
|
||||||
|
.constrained(),
|
||||||
)
|
)
|
||||||
.contained()
|
.contained(),
|
||||||
.flex(1., true),
|
|
||||||
)
|
)
|
||||||
.with_child(
|
.with_child(
|
||||||
Flex::row()
|
Flex::column()
|
||||||
.align_children_center()
|
.align_children_center()
|
||||||
|
.with_child(
|
||||||
|
Flex::row()
|
||||||
.with_child(
|
.with_child(
|
||||||
Flex::row()
|
Flex::row()
|
||||||
.with_child(
|
.with_child(
|
||||||
@ -242,6 +245,7 @@ impl View for BufferSearchBar {
|
|||||||
.contained()
|
.contained()
|
||||||
.with_style(editor_container)
|
.with_style(editor_container)
|
||||||
.aligned()
|
.aligned()
|
||||||
|
.top()
|
||||||
.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)
|
||||||
@ -254,6 +258,11 @@ impl View for BufferSearchBar {
|
|||||||
)
|
)
|
||||||
.flex(1., false),
|
.flex(1., false),
|
||||||
)
|
)
|
||||||
|
.contained()
|
||||||
|
.aligned()
|
||||||
|
.top()
|
||||||
|
.flex(1., false),
|
||||||
|
)
|
||||||
.with_child(
|
.with_child(
|
||||||
Flex::column().with_child(
|
Flex::column().with_child(
|
||||||
Flex::row()
|
Flex::row()
|
||||||
@ -275,6 +284,7 @@ impl View for BufferSearchBar {
|
|||||||
)
|
)
|
||||||
.contained()
|
.contained()
|
||||||
.with_style(theme.search.container)
|
.with_style(theme.search.container)
|
||||||
|
.flex_float()
|
||||||
.into_any_named("search bar")
|
.into_any_named("search bar")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user