From e4e99105754b3c05eb00db4e8034f7a43a6598a5 Mon Sep 17 00:00:00 2001 From: Ritoban Dutta <124308320+ritoban23@users.noreply.github.com> Date: Fri, 24 Oct 2025 02:55:17 +0530 Subject: [PATCH] fix(ui): use dedicated sidebar open/close icons for better visual feedback of actions (#2088) * fix(ui): use dedicated icons for sidebar toggle (panel-left-open/close) * fix: update sidebar toggle icon colors --- frontend/src/Navigation.tsx | 33 +++++++++++++----------- frontend/src/assets/expand.svg | 4 --- frontend/src/assets/panel-left-close.svg | 1 + frontend/src/assets/panel-left-open.svg | 1 + 4 files changed, 20 insertions(+), 19 deletions(-) delete mode 100644 frontend/src/assets/expand.svg create mode 100644 frontend/src/assets/panel-left-close.svg create mode 100644 frontend/src/assets/panel-left-open.svg diff --git a/frontend/src/Navigation.tsx b/frontend/src/Navigation.tsx index 85ad7d06..b8c714bc 100644 --- a/frontend/src/Navigation.tsx +++ b/frontend/src/Navigation.tsx @@ -9,7 +9,8 @@ import userService from './api/services/userService'; import Add from './assets/add.svg'; import DocsGPT3 from './assets/cute_docsgpt3.svg'; import Discord from './assets/discord.svg'; -import Expand from './assets/expand.svg'; +import PanelLeftClose from './assets/panel-left-close.svg'; +import PanelLeftOpen from './assets/panel-left-open.svg'; import Github from './assets/git_nav.svg'; import Hamburger from './assets/hamburger.svg'; import openNewChat from './assets/openNewChat.svg'; @@ -302,18 +303,20 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) { {
- + {!navOpen && ( + + )} {queries?.length > 0 && ( diff --git a/frontend/src/assets/expand.svg b/frontend/src/assets/expand.svg deleted file mode 100644 index a3260d98..00000000 --- a/frontend/src/assets/expand.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/frontend/src/assets/panel-left-close.svg b/frontend/src/assets/panel-left-close.svg new file mode 100644 index 00000000..c134cae0 --- /dev/null +++ b/frontend/src/assets/panel-left-close.svg @@ -0,0 +1 @@ + diff --git a/frontend/src/assets/panel-left-open.svg b/frontend/src/assets/panel-left-open.svg new file mode 100644 index 00000000..c9935f7a --- /dev/null +++ b/frontend/src/assets/panel-left-open.svg @@ -0,0 +1 @@ +