|
1 | 1 | import type { AIBridgeInterception } from "api/typesGenerated"; |
2 | 2 | import { Avatar } from "components/Avatar/Avatar"; |
3 | 3 | import { Badge } from "components/Badge/Badge"; |
4 | | -import { AnthropicIcon } from "components/Icons/AnthropicIcon"; |
5 | | -import { OpenAIIcon } from "components/Icons/OpenAIIcon"; |
| 4 | +import { ExternalImage } from "components/ExternalImage/ExternalImage"; |
6 | 5 | import { TableCell, TableRow } from "components/Table/Table"; |
7 | 6 | import { |
8 | 7 | Tooltip, |
@@ -42,18 +41,13 @@ const RequestLogsRowProviderIcon = ({ |
42 | 41 | }: { |
43 | 42 | provider: string; |
44 | 43 | } & React.ComponentProps<"svg">) => { |
45 | | - const iconClassName = "size-icon-sm flex-shrink-0"; |
| 44 | + const iconClassName = "size-icon-xs flex-shrink-0"; |
46 | 45 | switch (provider) { |
47 | 46 | case "openai": |
48 | | - return ( |
49 | | - <OpenAIIcon className={cn(iconClassName, props.className)} {...props} /> |
50 | | - ); |
| 47 | + return <ExternalImage src="/icon/openai.svg" className={iconClassName} />; |
51 | 48 | case "anthropic": |
52 | 49 | return ( |
53 | | - <AnthropicIcon |
54 | | - className={cn(iconClassName, props.className)} |
55 | | - {...props} |
56 | | - /> |
| 50 | + <ExternalImage src="/icon/anthropic.svg" className={iconClassName} /> |
57 | 51 | ); |
58 | 52 | default: |
59 | 53 | return ( |
@@ -178,7 +172,7 @@ export const RequestLogsRow: FC<RequestLogsRowProps> = ({ interception }) => { |
178 | 172 | <Tooltip> |
179 | 173 | <TooltipTrigger asChild> |
180 | 174 | <div className="w-full min-w-0 overflow-hidden"> |
181 | | - <Badge className="gap-0.5 w-full"> |
| 175 | + <Badge className="gap-1.5 w-full"> |
182 | 176 | <div className="flex-shrink-0 flex items-center"> |
183 | 177 | <RequestLogsRowProviderIcon |
184 | 178 | provider={interception.provider} |
@@ -258,7 +252,7 @@ export const RequestLogsRow: FC<RequestLogsRowProps> = ({ interception }) => { |
258 | 252 |
|
259 | 253 | <dt>Model:</dt> |
260 | 254 | <dd data-chromatic="ignore"> |
261 | | - <Badge className="gap-0.5"> |
| 255 | + <Badge className="gap-2"> |
262 | 256 | <div className="flex-shrink-0 flex items-center"> |
263 | 257 | <RequestLogsRowProviderIcon |
264 | 258 | provider={interception.provider} |
|
0 commit comments