fix(webui): remove white underlay from provider tiles
This commit is contained in:
1 parent
8f6e609c4e
commit
5aac672b98
2 files changed
+5
-2
No files matched your search
@@ -1282,7 +1282,7 @@ export function ProviderIcon({
|
||||
data-testid={`provider-logo-${provider}`}
|
||||
className={cn(
|
||||
"relative grid h-8 w-8 shrink-0 place-items-center overflow-hidden rounded-[9px] text-[11px] font-semibold text-muted-foreground",
|
||||
showLoadedLogo ? "bg-white" : "bg-muted",
|
||||
showLoadedLogo ? (isLogoTile ? "bg-transparent" : "bg-white") : "bg-muted",
|
||||
)}
|
||||
aria-hidden
|
||||
>
|
||||
|
||||
@@ -58,7 +58,8 @@ describe("settings provider icons", () => {
|
||||
|
||||
fireEvent.load(image);
|
||||
expect(image).toHaveClass("opacity-100");
|
||||
expect(icon).toHaveClass("bg-white");
|
||||
expect(icon).toHaveClass("bg-transparent");
|
||||
expect(icon).not.toHaveClass("bg-white", "bg-muted");
|
||||
|
||||
fireEvent.error(image);
|
||||
expect(image).toHaveAttribute("src", providerBrand(provider)!.logoUrls[1]);
|
||||
@@ -67,6 +68,8 @@ describe("settings provider icons", () => {
|
||||
fireEvent.load(image);
|
||||
expectFootprint(icon);
|
||||
expect(image).toHaveClass("h-6", "w-6", "opacity-100");
|
||||
expect(icon).toHaveClass("bg-white");
|
||||
expect(icon).not.toHaveClass("bg-transparent");
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user