Update toolbar left tool group
This commit is contained in:
parent
118c9b5fe8
commit
0af0c5549c
1 changed files with 27 additions and 29 deletions
|
@ -1555,6 +1555,12 @@ impl Pane {
|
|||
}
|
||||
|
||||
fn render_tab_bar(&mut self, cx: &mut ViewContext<'_, Pane>) -> impl IntoElement {
|
||||
dbg!(format!(
|
||||
"Can navigate forwards: {}, can navigate backwards: {}",
|
||||
self.can_navigate_forward(),
|
||||
self.can_navigate_backward()
|
||||
));
|
||||
|
||||
div()
|
||||
.id("tab_bar")
|
||||
.group("tab_bar")
|
||||
|
@ -1568,19 +1574,12 @@ impl Pane {
|
|||
.bg(cx.theme().colors().tab_bar_background)
|
||||
// Left Side
|
||||
.child(
|
||||
div()
|
||||
.relative()
|
||||
.px_1()
|
||||
h_stack()
|
||||
.px_2()
|
||||
.flex()
|
||||
.flex_none()
|
||||
.gap_2()
|
||||
.gap_1()
|
||||
// Nav Buttons
|
||||
.child(
|
||||
div()
|
||||
.right_0()
|
||||
.flex()
|
||||
.items_center()
|
||||
.gap_px()
|
||||
.child(
|
||||
div().border().border_color(gpui::red()).child(
|
||||
IconButton::new("navigate_backward", Icon::ArrowLeft)
|
||||
|
@ -1601,7 +1600,6 @@ impl Pane {
|
|||
.disabled(!self.can_navigate_forward()),
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
.child(
|
||||
div().flex_1().h_full().child(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue