统一模型弹窗选中色并压缩模型间距
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-02-14 21:17:11 +08:00
parent b1ce1aeefe
commit f901c35470
3 changed files with 8 additions and 8 deletions

View File

@ -2084,12 +2084,12 @@ export function CanvasChatPanel({ chatId, initialMessages = [], onClose, onOpenF
</span>
</SelectTrigger>
<SelectContent className="w-[248px] max-h-[340px] overflow-hidden rounded-[18px] border border-[#cfd4dc] bg-[#f3f4f6] p-1.5 shadow-[0_8px_20px_rgba(15,23,42,0.13)]">
<div className="max-h-[312px] space-y-1 overflow-y-auto pr-1">
<div className="max-h-[312px] space-y-0.5 overflow-y-auto pr-1">
{allModels.map((model) => (
<SelectItem
key={model.id}
value={model.id}
className="h-9 rounded-xl px-2.5 text-[#2f3640] [&>span:first-child]:hidden focus:bg-[#dfe2e6] focus:text-[#1f2937] data-[state=checked]:bg-[#dfe2e6] data-[state=checked]:text-[#1f2937]"
className="h-[34px] rounded-xl px-2.5 text-[#2f3640] [&>span:first-child]:hidden focus:bg-[#e7ebf0] focus:text-[#1f2937] data-[state=checked]:bg-[#e7ebf0] data-[state=checked]:text-[#1f2937]"
>
<span className="flex w-full items-center justify-between gap-2">
<span className="flex min-w-0 items-center gap-2">

View File

@ -1337,12 +1337,12 @@ export function LovartHome({
</span>
</SelectTrigger>
<SelectContent className="w-[248px] max-h-[340px] overflow-hidden rounded-[18px] border border-[#cfd4dc] bg-[#f3f4f6] p-1.5 shadow-[0_8px_20px_rgba(15,23,42,0.13)]">
<div className="max-h-[312px] space-y-1 overflow-y-auto pr-1">
<div className="max-h-[312px] space-y-0.5 overflow-y-auto pr-1">
{[{ id: "auto", displayName: "Agent模式", avatarUrl: null }, ...imageModels].map((model) => (
<SelectItem
key={model.id}
value={model.id}
className="h-9 rounded-xl px-2.5 text-[#2f3640] [&>span:first-child]:hidden focus:bg-[#dfe2e6] focus:text-[#1f2937] data-[state=checked]:bg-[#dfe2e6] data-[state=checked]:text-[#1f2937]"
className="h-[34px] rounded-xl px-2.5 text-[#2f3640] [&>span:first-child]:hidden focus:bg-[#e7ebf0] focus:text-[#1f2937] data-[state=checked]:bg-[#e7ebf0] data-[state=checked]:text-[#1f2937]"
>
<span className="flex w-full items-center justify-between gap-2">
<span className="flex min-w-0 items-center gap-2">

View File

@ -1184,15 +1184,15 @@ function PureModelSelectorCompact({
</Button>
</Trigger>
<PromptInputModelSelectContent className="!w-[286px] max-h-[372px] overflow-hidden rounded-[22px] border border-[#bfc6cf] bg-[#f2f3f5] p-2 shadow-[0_10px_24px_rgba(15,23,42,0.12)]">
<div className="max-h-[338px] space-y-1 overflow-y-auto pr-1">
<div className="max-h-[338px] space-y-0.5 overflow-y-auto pr-1">
{displayModels.map((model) => (
<SelectItem
key={model.id}
value={model.id}
className={cn(
"h-11 rounded-[14px] px-3 text-[#2f3640] [&>span:first-child]:hidden",
"focus:bg-[#d9dde3] focus:text-[#1f2937]",
"data-[state=checked]:bg-[#d2d7de] data-[state=checked]:text-[#1f2937]",
"h-10 rounded-[14px] px-3 text-[#2f3640] [&>span:first-child]:hidden",
"focus:bg-[#e7ebf0] focus:text-[#1f2937]",
"data-[state=checked]:bg-[#e7ebf0] data-[state=checked]:text-[#1f2937]",
model.isSubModel ? "pl-8" : ""
)}
>