style: Simplify terminal title bar and remove redundant path display

This commit is contained in:
TomZz
2026-06-12 21:26:18 +08:00
parent 99071997d5
commit 6f887712e6
+9 -4
View File
@@ -991,11 +991,16 @@ impl Ashell {
.text_color(cx.theme().muted_foreground)
.child({
if let Some(kind) = self.active_kind() {
let kind_str = match kind {
match kind {
TabKind::Local => t!("local_terminal").to_string(),
TabKind::Ssh => "ssh".to_string(),
};
format!("{} / {}", kind_str, self.active_title())
TabKind::Ssh => {
if let Some((_, session)) = self.active_ssh_session() {
format!("ssh / {}", session.name)
} else {
"ssh".to_string()
}
}
}
} else {
self.active_title()
}