Tighten up project share notifications
This commit is contained in:
parent
9a06b7e77d
commit
7b51f73826
1 changed files with 24 additions and 26 deletions
|
@ -23,7 +23,7 @@ pub fn init(app_state: &Arc<AppState>, cx: &mut AppContext) {
|
|||
} => {
|
||||
let window_size = Size {
|
||||
width: px(400.),
|
||||
height: px(96.),
|
||||
height: px(72.),
|
||||
};
|
||||
|
||||
for screen in cx.displays() {
|
||||
|
@ -139,20 +139,19 @@ impl Render for ProjectSharedNotification {
|
|||
.text_ui()
|
||||
.justify_between()
|
||||
.size_full()
|
||||
.overflow_hidden()
|
||||
.elevation_3(cx)
|
||||
.p_2()
|
||||
.gap_2()
|
||||
.child(
|
||||
h_stack()
|
||||
.gap_2()
|
||||
.child(
|
||||
img(self.owner.avatar_uri.clone())
|
||||
.w_16()
|
||||
.h_16()
|
||||
.w_12()
|
||||
.h_12()
|
||||
.rounded_full(),
|
||||
)
|
||||
.child(
|
||||
v_stack()
|
||||
.overflow_hidden()
|
||||
.child(Label::new(self.owner.github_login.clone()))
|
||||
.child(Label::new(format!(
|
||||
"is sharing a project in Zed{}",
|
||||
|
@ -167,7 +166,6 @@ impl Render for ProjectSharedNotification {
|
|||
} else {
|
||||
Some(Label::new(self.worktree_root_names.join(", ")))
|
||||
}),
|
||||
),
|
||||
)
|
||||
.child(
|
||||
v_stack()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue