From 2d8094b9fce3f351cf3cb781ba7282b3d195f6df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Ruiz?= Date: Wed, 13 Nov 2024 10:44:23 -0300 Subject: [PATCH] Css tweaks and icon change for sidebar (#26450) * Css tweaks and icon change for sidebar * Fix to the icon not showing Need to replace these icons with the correct ones, but at least it's showing it now * Add new icons for collapse/expand sidebar * Css tweaks and icon change for sidebar * Add new icons for collapse/expand sidebar * Css tweaks and icon change for sidebar * Fix to the icon not showing Need to replace these icons with the correct ones, but at least it's showing it now * Add new icons for collapse/expand sidebar * Css tweaks and icon change for sidebar * Add new icons for collapse/expand sidebar * revert change to package.json * indent suggestion --- .../conversations_list/style.module.scss | 10 ++++++++-- .../resources/page/components/full_page/index.tsx | 14 +++++++------- .../page/components/full_page/style.module.scss | 2 +- .../page/components/input_box/style.module.scss | 7 +++++-- ui/webui/resources/BUILD.gn | 2 ++ 5 files changed, 23 insertions(+), 12 deletions(-) diff --git a/components/ai_chat/resources/page/components/conversations_list/style.module.scss b/components/ai_chat/resources/page/components/conversations_list/style.module.scss index 25b187139bf1..b6aec0aa9d38 100644 --- a/components/ai_chat/resources/page/components/conversations_list/style.module.scss +++ b/components/ai_chat/resources/page/components/conversations_list/style.module.scss @@ -16,6 +16,9 @@ padding: 0; margin: 0; } + li { + margin-bottom: var(--leo-spacing-s); + } } .navItem { @@ -24,14 +27,17 @@ padding: var(--leo-spacing-l) var(--leo-spacing-xl); border-radius: 8px; position: relative; + transition: all 0.2s ease-out allow-discrete; &:hover { - background: var(--leo-color-container-background); + background: var(--leo-color-container-highlight); + box-shadow: var(--leo-effect-elevation-01); } } .navItemActive { background: var(--leo-color-container-background); + transition: all 0.2s ease-out allow-discrete; } .optionsMenu { @@ -42,7 +48,7 @@ .optionsButton { --leo-icon-size: 20px; - color: var(--leo-color-icon-interactive); + color: var(--leo-color-icon-default); position: absolute; top: 50%; transform: translateY(-50%); diff --git a/components/ai_chat/resources/page/components/full_page/index.tsx b/components/ai_chat/resources/page/components/full_page/index.tsx index 82131af52ade..08c8761917bb 100644 --- a/components/ai_chat/resources/page/components/full_page/index.tsx +++ b/components/ai_chat/resources/page/components/full_page/index.tsx @@ -90,13 +90,13 @@ export default function FullScreen() {
- + {!isNavigationRendered && ( <>