Skip to content

Commit 1e41cc0

Browse files
gkorlandCopilot
andcommitted
Replace CodeGraphLogo with Logo in mobile header
- Remove code-graph-logo.tsx component (unused after change) - Mobile header now uses Logo + 'CODE GRAPH' text, matching desktop layout - Fix duplicate SVG gradient ID conflict using React useId() - Change mobile header from absolute-positioned icons to flex justify-between Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a8907b0 commit 1e41cc0

3 files changed

Lines changed: 12 additions & 49 deletions

File tree

app/src/App.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { Button } from '@/components/ui/button';
2121
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip';
2222
import { ThemeToggle } from './components/theme-toggle';
2323
import Logo from './components/logo';
24-
import CodeGraphLogo from './components/code-graph-logo';
24+
2525

2626
const Chat = lazy(() => import('./components/chat').then(mod => ({ default: mod.Chat })));
2727
const CodeGraph = lazy(() => import('./components/code-graph').then(mod => ({ default: mod.CodeGraph })));
@@ -581,11 +581,12 @@ export default function App() {
581581
</Suspense>
582582
</div>
583583
<div className='flex flex-col md:hidden h-full overflow-hidden' id='mobile'>
584-
<header className='flex justify-center items-center relative bg-muted'>
585-
<a href="https://www.falkordb.com" target='_blank' rel="noopener noreferrer" aria-label="FalkorDB">
586-
<CodeGraphLogo style={{ width: 'auto', height: '70px' }} />
584+
<header className='flex justify-between items-center bg-muted py-2 px-4'>
585+
<a href="https://www.falkordb.com" target='_blank' rel="noopener noreferrer" aria-label="FalkorDB" className="flex gap-2 items-center">
586+
<Logo width={40} height={34} />
587+
<span className='font-semibold text-[22px]'>CODE GRAPH</span>
587588
</a>
588-
<div className='absolute top-4 right-4 flex gap-2'>
589+
<div className='flex gap-2'>
589590
<ThemeToggle />
590591
<button onClick={() => setMenuOpen(prev => !prev)}>
591592
<AlignRight />

app/src/components/code-graph-logo.tsx

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)