fix header

This commit is contained in:
Nate 2025-03-19 16:43:00 -07:00
parent 4a82e5a302
commit c818c9f43b
6 changed files with 24 additions and 8 deletions

View file

@ -1,11 +1,10 @@
import { ArrowLeftIcon } from "@heroicons/react/24/outline";
import { AccountButton } from "../pages/config/AccountButton";
export interface PageHeaderProps {
onTitleClick?: () => void;
title?: string;
rightContent?: React.ReactNode;
showBorder?: boolean; // Added this prop
showBorder?: boolean;
}
export default function PageHeader({
@ -34,7 +33,6 @@ export default function PageHeader({
{title}
</span>
</div>
<AccountButton />
</>
)}
</div>

View file

@ -63,7 +63,7 @@ export default function AssistantSelect() {
orgSlug: selectedOrganization?.slug,
});
}}
className="text-lightgray hover:bg mb-1 mr-3 flex cursor-pointer items-center gap-1"
className="text-lightgray hover:bg mb-1 mr-3 flex cursor-pointer items-center gap-1 whitespace-nowrap"
style={{ fontSize: `${getFontSize() - 2}px` }}
>
<PlusIcon className="h-4 w-4" /> Create your first assistant

View file

@ -12,6 +12,7 @@ import { useNavigationListener } from "../../hooks/useNavigationListener";
import { useAppDispatch, useAppSelector } from "../../redux/hooks";
import { setOnboardingCard } from "../../redux/slices/uiSlice";
import { saveCurrentSession } from "../../redux/thunks/session";
import { AccountButton } from "../config/AccountButton";
import IndexingProgress from "./IndexingProgress";
import KeyboardShortcuts from "./KeyboardShortcuts";
import MoreHelpRow from "./MoreHelpRow";
@ -26,7 +27,12 @@ function MorePage() {
return (
<div className="overflow-y-scroll">
<PageHeader showBorder onTitleClick={() => navigate("/")} title="Chat" />
<PageHeader
showBorder
onTitleClick={() => navigate("/")}
title="Chat"
rightContent={<AccountButton />}
/>
<div className="gap-2 divide-x-0 divide-y-2 divide-solid divide-zinc-700 px-4">
<div className="py-5">

View file

@ -16,7 +16,7 @@ export function AccountButton() {
return (
<Popover className="relative">
<Popover.Button className="border-vsc-input-border bg-vsc-background hover:bg-vsc-input-background text-vsc-foreground flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-solid">
<Popover.Button className="border-vsc-input-border bg-vsc-background hover:bg-vsc-input-background text-vsc-foreground mr-4 flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-solid">
<UserCircleIcon className="h-6 w-6" />
</Popover.Button>

View file

@ -31,6 +31,7 @@ import {
} from "../../redux/slices/configSlice";
import { selectProfileThunk } from "../../redux/thunks/profileAndOrg";
import { getFontSize, isJetBrains } from "../../util";
import { AccountButton } from "./AccountButton";
import ModelRoleSelector from "./ModelRoleSelector";
import { ScopeSelect } from "./ScopeSelect";
@ -181,7 +182,12 @@ function ConfigPage() {
return (
<div className="overflow-y-scroll">
<PageHeader showBorder onTitleClick={() => navigate("/")} title="Chat" />
<PageHeader
showBorder
onTitleClick={() => navigate("/")}
title="Chat"
rightContent={<AccountButton />}
/>
<div className="divide-x-0 divide-y-2 divide-solid divide-zinc-700 px-4">
<div className="flex flex-col">

View file

@ -2,13 +2,19 @@ import { useNavigate } from "react-router-dom";
import { History } from "../../components/History";
import PageHeader from "../../components/PageHeader";
import { getFontSize } from "../../util";
import { AccountButton } from "../config/AccountButton";
export default function HistoryPage() {
const navigate = useNavigate();
return (
<div className="overflow-y-scroll" style={{ fontSize: getFontSize() }}>
<PageHeader showBorder onTitleClick={() => navigate("/")} title="Chat" />
<PageHeader
showBorder
onTitleClick={() => navigate("/")}
title="Chat"
rightContent={<AccountButton />}
/>
<History />
</div>
);