Vectrum
Sign In

Connections: roomier form, device names in project menus

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JjohannSocommitted 1 parent 12d7ea8commit7f694e9

Showing 2 changed files with 15 additions and 4 deletions.

+7−3src/ui/settings.rsView File
@@ -1690,9 +1690,13 @@ impl SettingsView {
16901690 .child(
16911691 h_flex()
16921692 .gap(px(8.))
1693- .child(text_field(&self.connect_name, 150., window, cx))
1694- .child(text_field(&self.connect_address, 220., window, cx))
1695- .child(text_field(&self.connect_key, 150., window, cx))
1693+ .child(text_field(&self.connect_name, 200., window, cx).flex_1())
1694+ .child(text_field(&self.connect_address, 300., window, cx).flex_1()),
1695+ )
1696+ .child(
1697+ h_flex()
1698+ .gap(px(8.))
1699+ .child(text_field(&self.connect_key, 300., window, cx).flex_1())
16961700 .child(
16971701 MetalButton::new("connect-remote")
16981702 .primary()
+8−1src/ui/workspace.rsView File
@@ -1349,7 +1349,14 @@ impl Workspace {
13491349 let projects: Vec<(usize, SharedString)> = self
13501350 .ordered_projects(cx)
13511351 .into_iter()
1352- .map(|ix| (ix, self.projects[ix].name.clone()))
1352+ .map(|ix| {
1353+ let project = &self.projects[ix];
1354+ let name = match &project.environment {
1355+ Some(env) => format!("{} · {}", project.name, self.environment_name(env)).into(),
1356+ None => project.name.clone(),
1357+ };
1358+ (ix, name)
1359+ })
13531360 .collect();
13541361 let workspace = cx.entity().downgrade();
13551362