Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): keep narrow chat headers readable and aligned #12453

Mergedshivamhwp(GitHub profile, opens in a new tab)merged 10 commits intomain fromrefs/pull/12453/headmerged by shivamhwp(GitHub profile, opens in a new tab) View on GitHub

Showing 7 changed files with 125 additions and 39 deletions (loading 6).

x
0 of 7 viewed, 7 left
125 additions and 39 deletionsapps/web/src/components/chat/ChatHeader.tsxModified
View file
@@ -11,7 +11,7 @@
isAtomCommandInterrupted,
squashAtomCommandFailure,
} from "@t3tools/client-runtime/state/runtime";
-import { ChevronDownIcon } from "lucide-react";
+import { ChevronDownIcon, EllipsisIcon } from "lucide-react";
import {
memo,
useCallback,
@@ -22,6 +22,7 @@
type KeyboardEvent as ReactKeyboardEvent,
type MouseEvent as ReactMouseEvent,
} from "react";
+import { createPortal } from "react-dom";
import GitActionsControl from "../GitActionsControl";
import { isTrailingDoubleClick } from "../Sidebar.logic";
import { type DraftId } from "~/composerDraftStore";
@@ -45,8 +46,12 @@
WorkspaceBreadcrumb,
WorkspaceBreadcrumbItem,
WorkspaceBreadcrumbSeparator,
+ WorkspaceBreadcrumbText,
} from "../WorkspaceBreadcrumb";
import { cn } from "~/lib/utils";
+import { useIsMobile } from "~/hooks/useMediaQuery";
+import { Button } from "../ui/button";
+import { Menu, MenuPopup, MenuSeparator, MenuTrigger } from "../ui/menu";
​