mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
Move match index before the navigation buttons
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
51ec350635
commit
3ccbd77269
2 changed files with 7 additions and 8 deletions
|
@ -111,6 +111,13 @@ impl View for FindBar {
|
||||||
.aligned()
|
.aligned()
|
||||||
.boxed(),
|
.boxed(),
|
||||||
)
|
)
|
||||||
|
.with_child(
|
||||||
|
Flex::row()
|
||||||
|
.with_child(self.render_nav_button("<", Direction::Prev, cx))
|
||||||
|
.with_child(self.render_nav_button(">", Direction::Next, cx))
|
||||||
|
.aligned()
|
||||||
|
.boxed(),
|
||||||
|
)
|
||||||
.with_children(self.active_editor.as_ref().and_then(|editor| {
|
.with_children(self.active_editor.as_ref().and_then(|editor| {
|
||||||
let (_, highlighted_ranges) =
|
let (_, highlighted_ranges) =
|
||||||
editor.read(cx).highlighted_ranges_for_type::<Self>()?;
|
editor.read(cx).highlighted_ranges_for_type::<Self>()?;
|
||||||
|
@ -128,13 +135,6 @@ impl View for FindBar {
|
||||||
.boxed(),
|
.boxed(),
|
||||||
)
|
)
|
||||||
}))
|
}))
|
||||||
.with_child(
|
|
||||||
Flex::row()
|
|
||||||
.with_child(self.render_nav_button("<", Direction::Prev, cx))
|
|
||||||
.with_child(self.render_nav_button(">", Direction::Next, cx))
|
|
||||||
.aligned()
|
|
||||||
.boxed(),
|
|
||||||
)
|
|
||||||
.contained()
|
.contained()
|
||||||
.with_style(theme.find.container)
|
.with_style(theme.find.container)
|
||||||
.constrained()
|
.constrained()
|
||||||
|
|
|
@ -353,7 +353,6 @@ background = "$surface.2"
|
||||||
[find.match_index]
|
[find.match_index]
|
||||||
extends = "$text.1"
|
extends = "$text.1"
|
||||||
padding = 6
|
padding = 6
|
||||||
margin.left = 24
|
|
||||||
|
|
||||||
[find.editor]
|
[find.editor]
|
||||||
max_width = 400
|
max_width = 400
|
||||||
|
|
Loading…
Reference in a new issue