Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Dec 15, 2024
1 parent 02b817f commit c541376
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion web/src/app/chat/shared_chat_search/FixedLogo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function FixedLogo({
<>
<Link
href="/chat"
className="fixed cursor-pointer flex z-40 left-4 top-2 h-8"
className="fixed cursor-pointer flex z-40 left-4 top-3 h-8"
>
<LogoComponent
enterpriseSettings={enterpriseSettings!}
Expand Down
13 changes: 9 additions & 4 deletions web/src/components/admin/connectors/AdminSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import {
TooltipTrigger,
} from "@/components/ui/tooltip";
import { CgArrowsExpandUpLeft } from "react-icons/cg";
import LogoWithText from "@/components/header/LogoWithText";
import { LogoComponent } from "@/app/chat/shared_chat_search/FixedLogo";

interface Item {
name: string | JSX.Element;
Expand All @@ -32,14 +34,17 @@ export function AdminSidebar({ collections }: { collections: Collection[] }) {
return null;
}

const settings = combinedSettings.settings;
const enterpriseSettings = combinedSettings.enterpriseSettings;

return (
<div className="text-text-settings-sidebar pl-0">
<nav className="space-y-2">
<div className="w-full ml-4 h-8 justify-start mb-4 flex">
<div className="flex items-center gap-x-1 my-auto">
<div className="w-full ml-4 mt-1 h-8 justify-start mb-4 flex">
<LogoComponent
enterpriseSettings={enterpriseSettings!}
backgroundToggled={false}
/>
{/* <div className="flex items-center gap-x-1 my-auto">
<div className="flex-none my-auto">
<Logo height={24} width={24} />
</div>
Expand All @@ -57,7 +62,7 @@ export function AdminSidebar({ collections }: { collections: Collection[] }) {
<HeaderTitle>Onyx</HeaderTitle>
)}
</div>
</div>
</div> */}
</div>
<div className="flex w-full justify-center">
<Link href="/chat">
Expand Down
5 changes: 3 additions & 2 deletions web/src/components/chat_search/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { pageType } from "@/app/chat/sessionSidebar/types";
import { useRouter } from "next/navigation";
import { ChatBanner } from "@/app/chat/ChatBanner";
import LogoWithText from "../header/LogoWithText";
import { NewChatIcon } from "../icons/icons";

export default function FunctionalHeader({
page,
Expand Down Expand Up @@ -65,7 +66,7 @@ export default function FunctionalHeader({
};
return (
<div className="left-0 sticky top-0 z-20 w-full relative flex">
<div className="items-end flex mt-2 mr-2 cursor-pointer text-text-700 relative flex w-full">
<div className="items-end flex mt-2 cursor-pointer text-text-700 relative flex w-full">
<LogoWithText
assistantId={currentChatSession?.persona_id}
page={page}
Expand Down Expand Up @@ -126,7 +127,7 @@ export default function FunctionalHeader({
}
>
<div className="cursor-pointer mr-4 flex-none text-text-700 hover:text-text-600 transition-colors duration-300">
{/* <NewChatIcon size={20} /> */}
<NewChatIcon size={20} />
</div>
</Link>
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/header/LogoWithText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function LogoWithText({
<div
className={`${
hideOnMobile && "mobile:hidden"
} z-[100] ml-2 mt- h-8 mb-auto shrink-0 flex gap-x-0 items-center text-xl`}
} z-[100] ml-2 mt-1 h-8 mb-auto shrink-0 flex gap-x-0 items-center text-xl`}
>
{toggleSidebar && page == "chat" ? (
<button
Expand Down

0 comments on commit c541376

Please sign in to comment.