aboutsummaryrefslogtreecommitdiff
path: root/src/client/shell/mobile.rs
diff options
context:
space:
mode:
authorEric Yue <jiacheng.yue@foxmail.com>2026-09-20 22:33:50 +0800
committerGitHub <noreply@github.com>2026-09-20 16:33:50 +0200
commit74505861e40c48e070e711bd4de662a17b0939b3 (patch)
tree736ad65c9dba956554529b4169bc54827dc342e3 /src/client/shell/mobile.rs
parentc00a62dda169beb472fc2f386d0f673ca100dfa4 (diff)
fix: keep workspace navigation visible in terminal theme (#4408)
* fix: keep workspace navigation visible in terminal theme refs #4300 * fix: clear workspace highlight on directional pane focus refs #4300 --------- Co-authored-by: JJ Liebig <jonathan.liebig@gmail.com>
Diffstat (limited to 'src/client/shell/mobile.rs')
-rw-r--r--src/client/shell/mobile.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/client/shell/mobile.rs b/src/client/shell/mobile.rs
index 8f06f54b..f4ae0af0 100644
--- a/src/client/shell/mobile.rs
+++ b/src/client/shell/mobile.rs
@@ -768,7 +768,13 @@ fn mobile_items(
palette.surface0
}
} else if endpoint.endpoint_id == active_endpoint_id && workspace.focused {
- palette.surface_dim
+ if selected_workspace_id.is_some()
+ && palette.surface0 == ratatui::style::Color::Reset
+ {
+ palette.panel_bg
+ } else {
+ palette.surface_dim
+ }
} else {
palette.panel_bg
};
@@ -957,6 +963,7 @@ impl ClientShellState {
{
self.mobile_switcher_scroll = 0;
self.reveal_mobile_workspace = false;
+ self.pending_workspace_highlight = None;
self.mode = ClientShellMode::Navigate;
self.navigate_workspace_id = self.focused_navigation_target();
outcome.repaint = true;