Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Tweak git blame tooltip design (#17517)
Danilo Lealcfd43572c198
diff --git a/crates/editor/src/blame_entry_tooltip.rs b/crates/editor/src/blame_entry_tooltip.rsindex 13d3d642360..3b3d3e4630c 100644--- a/crates/editor/src/blame_entry_tooltip.rs+++ b/crates/editor/src/blame_entry_tooltip.rs@@ -9,7 +9,7 @@ use settings::Settings;use std::hash::Hash;use theme::ThemeSettings;use time::UtcOffset;-use ui::{prelude::*, tooltip_container, Avatar};+use ui::{prelude::*, tooltip_container, Avatar, Divider, IconButtonShape};use workspace::Workspace;use crate::git::blame::{CommitDetails, GitRemote};@@ -160,6 +160,7 @@ impl Render for BlameEntryTooltip {.gap_4().child(h_flex()+ .pb_1p5().gap_x_2().overflow_x_hidden().flex_wrap()@@ -173,7 +174,7 @@ impl Render for BlameEntryTooltip {)}).border_b_1()- .border_color(cx.theme().colors().border),+ .border_color(cx.theme().colors().border_variant),).child(div()@@ -189,10 +190,13 @@ impl Render for BlameEntryTooltip {.text_color(cx.theme().colors().text_muted).w_full().justify_between()+ .pt_1p5()+ .border_t_1()+ .border_color(cx.theme().colors().border_variant).child(absolute_timestamp).child(h_flex()- .gap_2()+ .gap_1p5().when_some(pull_request, |this, pr| {this.child(Button::new(@@ -203,19 +207,20 @@ impl Render for BlameEntryTooltip {.icon(IconName::PullRequest).icon_color(Color::Muted).icon_position(IconPosition::Start)- .style(ButtonStyle::Transparent)+ .style(ButtonStyle::Subtle).on_click(move |_, cx| {cx.stop_propagation();cx.open_url(pr.url.as_str())}),)})+ .child(Divider::vertical()).child(Button::new("commit-sha-button",short_commit_id.clone(),)- .style(ButtonStyle::Transparent)+ .style(ButtonStyle::Subtle).color(Color::Muted).icon(IconName::FileGit).icon_color(Color::Muted)@@ -239,6 +244,8 @@ impl Render for BlameEntryTooltip {).child(IconButton::new("copy-sha-button", IconName::Copy)+ .shape(IconButtonShape::Square)+ .icon_size(IconSize::Small).icon_color(Color::Muted).on_click(move |_, cx| {cx.stop_propagation();