refactor: Feature flag custom chat icons and custom banner spacing changes to stay in sync with DataStax Langflow (#4845)

fix chat icons and custom banner spacing
This commit is contained in:
Mike Fortman 2024-11-30 12:31:43 -06:00 committed by GitHub
commit d49a1b24b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View file

@ -24,9 +24,9 @@ export default function PageLayout({
return (
<div className="flex w-full flex-1 flex-col justify-between overflow-auto overflow-x-hidden bg-background">
<div className="mx-auto flex w-full max-w-[1440px] flex-1 flex-col">
<div className="flex flex-col gap-4 p-6 pt-10">
<div className="flex flex-col gap-4 p-6 pt-0">
<CustomBanner />
<div className="flex w-full items-center justify-between gap-4 space-y-0.5 py-2">
<div className="flex w-full items-center justify-between gap-4 space-y-0.5 pb-2 pt-10">
<div className="flex w-full flex-col">
<div className="flex items-center gap-2">
{backTo && (

View file

@ -2,6 +2,8 @@ import { ProfileIcon } from "@/components/core/appHeaderComponent/components/Pro
import { ContentBlockDisplay } from "@/components/core/chatComponents/ContentBlockDisplay";
import { TextShimmer } from "@/components/ui/TextShimmer";
import { useUpdateMessage } from "@/controllers/API/queries/messages";
import { CustomProfileIcon } from "@/customization/components/custom-profile-icon";
import { ENABLE_DATASTAX_LANGFLOW } from "@/customization/feature-flags";
import useFlowsManagerStore from "@/stores/flowsManagerStore";
import useFlowStore from "@/stores/flowStore";
import { useUtilityStore } from "@/stores/utilityStore";
@ -441,8 +443,10 @@ export default function ChatMessage({
) : (
<ForwardedIconComponent name={chat.properties.icon} />
)
) : (
) : !ENABLE_DATASTAX_LANGFLOW ? (
<ProfileIcon />
) : (
<CustomProfileIcon />
)}
</div>
)}