diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index c135c525..9882ca9c 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -37,9 +37,9 @@ function MainLayout() {
diff --git a/frontend/src/Navigation.tsx b/frontend/src/Navigation.tsx index aed38181..73881248 100644 --- a/frontend/src/Navigation.tsx +++ b/frontend/src/Navigation.tsx @@ -292,20 +292,26 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) { useDefaultDocument(); return ( <> - {!navOpen && ( -
+ {(isMobile || isTablet) && navOpen && ( +
setNavOpen(false)} + /> + )} + + { +
{queries?.length > 0 && ( @@ -313,6 +319,7 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) { onClick={() => { newChat(); }} + className="transition-transform duration-200 hover:scale-110" >
- )} + }
@@ -358,9 +365,7 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) { Toggle navigation menu
diff --git a/frontend/src/agents/AgentLogs.tsx b/frontend/src/agents/AgentLogs.tsx index 1766c620..979a701e 100644 --- a/frontend/src/agents/AgentLogs.tsx +++ b/frontend/src/agents/AgentLogs.tsx @@ -49,7 +49,7 @@ export default function AgentLogs() {

-

+

Agent Logs

diff --git a/frontend/src/agents/NewAgent.tsx b/frontend/src/agents/NewAgent.tsx index 7313cdfc..95b31606 100644 --- a/frontend/src/agents/NewAgent.tsx +++ b/frontend/src/agents/NewAgent.tsx @@ -527,7 +527,7 @@ export default function NewAgent({ mode }: { mode: 'new' | 'edit' | 'draft' }) {

-

+

{modeConfig[effectiveMode].heading}

diff --git a/frontend/src/agents/index.tsx b/frontend/src/agents/index.tsx index ffd0e320..14dd7423 100644 --- a/frontend/src/agents/index.tsx +++ b/frontend/src/agents/index.tsx @@ -111,7 +111,7 @@ function AgentsList() { }, [token]); return (
-

+

Agents

diff --git a/frontend/src/components/CopyButton.tsx b/frontend/src/components/CopyButton.tsx index e1640c27..823123b2 100644 --- a/frontend/src/components/CopyButton.tsx +++ b/frontend/src/components/CopyButton.tsx @@ -8,10 +8,6 @@ import CopyIcon from '../assets/copy.svg?react'; type CopyButtonProps = { textToCopy: string; - bgColorLight?: string; - bgColorDark?: string; - hoverBgColorLight?: string; - hoverBgColorDark?: string; iconSize?: string; padding?: string; showText?: boolean; @@ -27,14 +23,11 @@ const DEFAULT_COPIED_DURATION = 2000; const DEFAULT_BG_LIGHT = '#FFFFFF'; const DEFAULT_BG_DARK = 'transparent'; const DEFAULT_HOVER_BG_LIGHT = '#EEEEEE'; -const DEFAULT_HOVER_BG_DARK = '#4A4A4A'; +const DEFAULT_HOVER_BG_DARK = '#464152'; export default function CopyButton({ textToCopy, - bgColorLight = DEFAULT_BG_LIGHT, - bgColorDark = DEFAULT_BG_DARK, - hoverBgColorLight = DEFAULT_HOVER_BG_LIGHT, - hoverBgColorDark = DEFAULT_HOVER_BG_DARK, + iconSize = DEFAULT_ICON_SIZE, padding = DEFAULT_PADDING, showText = false, @@ -50,9 +43,10 @@ export default function CopyButton({ const iconWrapperClasses = clsx( 'flex items-center justify-center rounded-full transition-colors duration-150 ease-in-out', padding, - `bg-[${bgColorLight}] dark:bg-[${bgColorDark}]`, - `hover:bg-[${hoverBgColorLight}] dark:hover:bg-[${hoverBgColorDark}]`, + `bg-[${DEFAULT_BG_LIGHT}] dark:bg-[${DEFAULT_BG_DARK}]`, { + [`hover:bg-[${DEFAULT_HOVER_BG_LIGHT}] dark:hover:bg-[${DEFAULT_HOVER_BG_DARK}]`]: + !isCopied, 'bg-green-100 dark:bg-green-900 hover:bg-green-100 dark:hover:bg-green-900': isCopied, },