diff --git a/desktop/src/features/chat/ui/ChatHeader.tsx b/desktop/src/features/chat/ui/ChatHeader.tsx index 102569732c..7b3a3fc602 100644 --- a/desktop/src/features/chat/ui/ChatHeader.tsx +++ b/desktop/src/features/chat/ui/ChatHeader.tsx @@ -11,6 +11,8 @@ import { import type * as React from "react"; import type { ChannelType, ChannelVisibility } from "@/shared/api/types"; +import { cn } from "@/shared/lib/cn"; +import { useSidebar } from "@/shared/ui/sidebar"; type ChatHeaderProps = { actions?: React.ReactNode; @@ -72,36 +74,63 @@ export function ChatHeader({ statusBadge, }: ChatHeaderProps) { const trimmedDescription = description.trim(); + const { isMobile, state } = useSidebar(); + const centerTitle = state === "collapsed" && !isMobile; + const titleContent = ( +