mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
recent_projects: Improve remote picker UX with long paths (#46151)
Closes #36503 Release Notes: - Improved readability of long paths in remote project picker
This commit is contained in:
parent
2c7bfec297
commit
b4fb8ff20e
1 changed files with 2 additions and 1 deletions
|
|
@ -1411,11 +1411,12 @@ impl RemoteServerProjects {
|
|||
.color(Color::Muted)
|
||||
.size(IconSize::Small),
|
||||
)
|
||||
.child(Label::new(project.paths.join(", ")))
|
||||
.child(Label::new(project.paths.join(", ")).truncate_start())
|
||||
.on_click(cx.listener(move |this, e: &ClickEvent, window, cx| {
|
||||
let secondary_confirm = e.modifiers().platform;
|
||||
callback(this, secondary_confirm, window, cx)
|
||||
}))
|
||||
.tooltip(Tooltip::text(project.paths.join("\n")))
|
||||
.when(is_from_zed, |server_list_item| {
|
||||
server_list_item.end_hover_slot::<AnyElement>(Some(
|
||||
div()
|
||||
|
|
|
|||
Loading…
Reference in a new issue