chore(ui): payment dialog + live indicator fix

This commit is contained in:
Soumyadas15 2025-05-23 13:25:35 +05:30
parent 375289b003
commit 7076d917d4
2 changed files with 6 additions and 1 deletions

View File

@ -34,6 +34,7 @@ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/comp
function truncateText(text: string, maxLength: number = 40) { function truncateText(text: string, maxLength: number = 40) {
return text.length > maxLength ? text.substring(0, maxLength) + '...' : text; return text.length > maxLength ? text.substring(0, maxLength) + '...' : text;
} }
export function WebScrapeToolView({ export function WebScrapeToolView({
name = 'scrape-webpage', name = 'scrape-webpage',
assistantContent, assistantContent,

View File

@ -32,6 +32,10 @@ import { Progress } from '@/components/ui/progress';
import { ScrollArea } from "@/components/ui/scroll-area"; import { ScrollArea } from "@/components/ui/scroll-area";
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip"; import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";
function truncateText(text: string, maxLength: number = 70) {
return text.length > maxLength ? text.substring(0, maxLength) + '...' : text;
}
export function WebSearchToolView({ export function WebSearchToolView({
name = 'web-search', name = 'web-search',
assistantContent, assistantContent,
@ -278,7 +282,7 @@ export function WebSearchToolView({
</a> </a>
<div className="text-xs text-zinc-500 dark:text-zinc-400 mb-2 flex items-center"> <div className="text-xs text-zinc-500 dark:text-zinc-400 mb-2 flex items-center">
<Globe className="h-3 w-3 mr-1.5 flex-shrink-0 opacity-70" /> <Globe className="h-3 w-3 mr-1.5 flex-shrink-0 opacity-70" />
{cleanUrl(result.url)} {truncateText(cleanUrl(result.url))}
</div> </div>
</div> </div>
<TooltipProvider> <TooltipProvider>