diff options
| author | akbash <akbash@herdr.dev> | 2026-09-09 02:35:31 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-09 02:35:31 +0300 |
| commit | b9ce96869e89937278d673d70ae4c135dd318469 (patch) | |
| tree | fea7e39dad42f8cad1f1846af6babda546c1fa78 /src/client/shell/sidebar.rs | |
| parent | 8be4cf765afddfd9cf3206602ba4dab682a29fa1 (diff) | |
feat: navigate and highlight workspaces across machines (#3755)
* fix: highlight workspace navigation with saved machines
refs #3754
* feat: navigate workspaces across connected machines
refs #3754
* feat: navigate workspaces across machines
refs #3754
---------
Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com>
Co-authored-by: Ogulcan Celik <ogulcancelik@gmail.com>
Diffstat (limited to 'src/client/shell/sidebar.rs')
| -rw-r--r-- | src/client/shell/sidebar.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/shell/sidebar.rs b/src/client/shell/sidebar.rs index fe6abf00..c002fd62 100644 --- a/src/client/shell/sidebar.rs +++ b/src/client/shell/sidebar.rs @@ -294,7 +294,9 @@ pub(crate) fn render_sidebar( break; } let rect = Rect::new(body.x, y, content_width, row_height); - let selected = state.selected_workspace_id == Some(workspace.workspace_id.as_str()); + let selected = state.selected_workspace_id.is_some_and(|target| { + target.matches(state.active_endpoint_id, &workspace.workspace_id) + }); let dragged = state.dragged_workspace_id == Some(workspace.workspace_id.as_str()); if selected { buffer.set_style(rect, Style::default().bg(palette.selection_bg)); |
