mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-14 20:55:15 +02:00
refactor(free-chat): remove FreeModelSelector from FreeChatPage and integrate it into FreeComposer for improved layout consistency
This commit is contained in:
parent
76843f42f1
commit
01cb4f281e
2 changed files with 3 additions and 6 deletions
|
|
@ -35,7 +35,6 @@ import {
|
|||
} from "@/lib/chat/streaming-state";
|
||||
import { BACKEND_URL } from "@/lib/env-config";
|
||||
import { trackAnonymousChatMessageSent } from "@/lib/posthog/events";
|
||||
import { FreeModelSelector } from "./free-model-selector";
|
||||
import { FreeThread } from "./free-thread";
|
||||
import { RemoveAdsBanner } from "./remove-ads-banner";
|
||||
|
||||
|
|
@ -499,10 +498,6 @@ export function FreeChatPage() {
|
|||
<TimelineDataUI />
|
||||
<StepSeparatorDataUI />
|
||||
<div className="flex h-full flex-col overflow-hidden">
|
||||
<div className="flex h-14 shrink-0 items-center justify-between border-b border-border/40 px-4">
|
||||
<FreeModelSelector />
|
||||
</div>
|
||||
|
||||
<RemoveAdsBanner />
|
||||
|
||||
{captchaRequired && TURNSTILE_SITE_KEY && (
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ import { useAnonymousMode } from "@/contexts/anonymous-mode";
|
|||
import { useLoginGate } from "@/contexts/login-gate";
|
||||
import { anonymousChatApiService } from "@/lib/apis/anonymous-chat-api.service";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { FreeModelSelector } from "./free-model-selector";
|
||||
|
||||
const ANON_ALLOWED_EXTENSIONS = new Set([
|
||||
".md",
|
||||
|
|
@ -227,7 +228,8 @@ export const FreeComposer: FC = () => {
|
|||
</Tooltip>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-1">
|
||||
<div className="flex min-w-0 items-center gap-1">
|
||||
<FreeModelSelector className="h-8 max-w-[44vw] px-2 sm:max-w-[220px] sm:px-3" />
|
||||
{!isRunning ? (
|
||||
<ComposerPrimitive.Send asChild>
|
||||
<TooltipIconButton tooltip="Send" variant="default" className="size-8 rounded-full">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue