Skip to content

Commit 67769ae

Browse files
committed
fix: mobile — remove gateway status row, hide chat header, reduce header padding, show workspace name
1 parent 6a056e3 commit 67769ae

2 files changed

Lines changed: 12 additions & 27 deletions

File tree

app/page.tsx

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -502,17 +502,17 @@ export default function EditorLayout() {
502502
{/* View navigation bar — folder tabs */}
503503
{isMobile ? (
504504
<div
505-
className="shrink-0 border-b border-[var(--border)] bg-[color-mix(in_srgb,var(--bg-elevated)_94%,black)] px-3 pb-3"
506-
style={{ paddingTop: 'calc(env(safe-area-inset-top) + 0.75rem)' }}
505+
className="shrink-0 border-b border-[var(--border)] bg-[color-mix(in_srgb,var(--bg-elevated)_94%,black)] px-3 pb-2"
506+
style={{ paddingTop: 'calc(env(safe-area-inset-top) + 0.5rem)' }}
507507
>
508508
<div className="flex items-center gap-2">
509509
<div className="min-w-0 flex-1">
510-
<div className="flex items-center gap-2">
511-
<span className="text-[15px] font-semibold text-[var(--text-primary)] tracking-tight">
512-
Knot Code
510+
<div className="flex items-center gap-1.5">
511+
<span className="text-[14px] font-semibold text-[var(--text-primary)] tracking-tight">
512+
{workspaceLabel === 'KnotCode' ? 'Knot Code' : workspaceLabel}
513513
</span>
514514
<span
515-
className={`h-2 w-2 rounded-full ${
515+
className={`h-1.5 w-1.5 rounded-full shrink-0 ${
516516
status === 'connected'
517517
? 'bg-emerald-400'
518518
: status === 'connecting'
@@ -551,27 +551,7 @@ export default function EditorLayout() {
551551
</button>
552552
</div>
553553

554-
<div className="mt-3 flex items-center justify-between gap-3">
555-
<div className="flex min-w-0 items-center gap-2 text-[11px] text-[var(--text-secondary)]">
556-
<span
557-
className={`h-2 w-2 shrink-0 rounded-full ${
558-
status === 'connected'
559-
? 'bg-emerald-400'
560-
: status === 'connecting'
561-
? 'bg-amber-400 animate-pulse'
562-
: 'bg-red-400'
563-
}`}
564-
/>
565-
<span className="truncate">
566-
{status === 'connected'
567-
? 'Gateway active'
568-
: status === 'connecting'
569-
? 'Connecting'
570-
: 'Disconnected'}
571-
</span>
572-
</div>
573-
574-
</div>
554+
{/* Gateway status text removed — dot in header is sufficient */}
575555
</div>
576556
) : (
577557
<div

components/chat-header.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ export function ChatHeader({
3131

3232
if (!title && messageCount === 0) return null
3333

34+
const isMobile = typeof window !== 'undefined' && window.innerWidth <= 768
35+
36+
// Hide entire chat header on mobile — saves 40px vertical space
37+
if (isMobile) return null
38+
3439
return (
3540
<div className="shrink-0">
3641
<div className="flex items-center justify-between h-10 px-3 border-b border-[var(--border)] bg-[var(--bg-elevated)]">

0 commit comments

Comments
 (0)