chore: format
This commit is contained in:
@@ -83,7 +83,7 @@
|
||||
{/if}
|
||||
|
||||
<div
|
||||
class=" mt-2 mb-4 text-3xl text-gray-800 dark:text-gray-100 text-left flex items-center gap-4 "
|
||||
class=" mt-2 mb-4 text-3xl text-gray-800 dark:text-gray-100 text-left flex items-center gap-4"
|
||||
>
|
||||
<div>
|
||||
<div class=" capitalize line-clamp-1" in:fade={{ duration: 200 }}>
|
||||
@@ -132,7 +132,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=" w-full " in:fade={{ duration: 200, delay: 300 }}>
|
||||
<div class=" w-full" in:fade={{ duration: 200, delay: 300 }}>
|
||||
<Suggestions
|
||||
className="grid grid-cols-2"
|
||||
suggestionPrompts={atSelectedModel?.info?.meta?.suggestion_prompts ??
|
||||
|
||||
@@ -477,7 +477,9 @@
|
||||
$: contextPercent = contextHasThreshold
|
||||
? Math.max(0, Math.round(statusContextUsage?.percent ?? 0))
|
||||
: null;
|
||||
$: contextTokens = formatTokenCount(statusContextUsage?.estimated_tokens || statusContextUsage?.tokens || 0);
|
||||
$: contextTokens = formatTokenCount(
|
||||
statusContextUsage?.estimated_tokens || statusContextUsage?.tokens || 0
|
||||
);
|
||||
$: contextValue = statusContextUsage
|
||||
? contextHasThreshold
|
||||
? `${contextPercent}% ${contextTokens}/${formatTokenCount(statusContextUsage.threshold)}`
|
||||
|
||||
@@ -154,8 +154,12 @@
|
||||
}
|
||||
|
||||
const availableHeight = Math.max(0, openAbove ? spaceAbove : spaceBelow);
|
||||
const constrainedHeight = contentHeight ? Math.min(contentHeight, availableHeight) : contentHeight;
|
||||
const preferredTop = openAbove ? rect.top - constrainedHeight - sideOffset : rect.bottom + sideOffset;
|
||||
const constrainedHeight = contentHeight
|
||||
? Math.min(contentHeight, availableHeight)
|
||||
: contentHeight;
|
||||
const preferredTop = openAbove
|
||||
? rect.top - constrainedHeight - sideOffset
|
||||
: rect.bottom + sideOffset;
|
||||
const contentWidth = contentEl.offsetWidth || 0;
|
||||
const preferredLeft = align === 'end' && contentWidth ? rect.right - contentWidth : rect.left;
|
||||
const maxLeft = contentWidth ? viewportRight - contentWidth - pad : preferredLeft;
|
||||
|
||||
Reference in New Issue
Block a user