rebase with nightly
This commit is contained in:
parent
2513d1b623
commit
1a90b883b6
1 changed files with 21 additions and 0 deletions
|
|
@ -44,6 +44,7 @@ function ModelRow({
|
|||
vramStatus,
|
||||
vramEst,
|
||||
gpuGb,
|
||||
tooltipText,
|
||||
}: {
|
||||
label: string;
|
||||
meta?: string;
|
||||
|
|
@ -52,6 +53,7 @@ function ModelRow({
|
|||
vramStatus?: VramFitStatus | null;
|
||||
vramEst?: number;
|
||||
gpuGb?: number;
|
||||
tooltipText?: ReactNode;
|
||||
}) {
|
||||
const exceeds = vramStatus === "exceeds";
|
||||
const showVramTooltip =
|
||||
|
|
@ -111,6 +113,17 @@ function ModelRow({
|
|||
</Tooltip>
|
||||
);
|
||||
}
|
||||
|
||||
if (tooltipText) {
|
||||
return (
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>{content}</TooltipTrigger>
|
||||
<TooltipContent side="left" className="max-w-xs break-all">
|
||||
{tooltipText}
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
);
|
||||
}
|
||||
return content;
|
||||
}
|
||||
|
||||
|
|
@ -382,6 +395,14 @@ export function LoraModelPicker({
|
|||
source: isExported ? "exported" : "lora",
|
||||
isLora: !isMerged,
|
||||
})}
|
||||
tooltipText={
|
||||
<>
|
||||
<span className="block break-words">{adapter.name}</span>
|
||||
<span className="block mt-1 text-[10px] text-muted-foreground break-all">
|
||||
{adapter.id}
|
||||
</span>
|
||||
</>
|
||||
}
|
||||
/>
|
||||
);
|
||||
})}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue