fix(webui): reduce settings provider icons to 32px
This commit is contained in:
1 parent
eac2364898
commit
83a747bea2
3 files changed
+4
-4
No files matched your search
@@ -758,7 +758,7 @@ export function ModelsSettings({
|
|||||||
{presetConfigured ? (
|
{presetConfigured ? (
|
||||||
<ProviderIcon provider={provider} showBrandLogos={showBrandLogos} />
|
<ProviderIcon provider={provider} showBrandLogos={showBrandLogos} />
|
||||||
) : (
|
) : (
|
||||||
<span className="grid h-9 w-9 shrink-0 place-items-center">
|
<span className="grid h-8 w-8 shrink-0 place-items-center">
|
||||||
<ProviderPickerIcon provider={provider} showBrandLogos={showBrandLogos} unconfigured />
|
<ProviderPickerIcon provider={provider} showBrandLogos={showBrandLogos} unconfigured />
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -1184,7 +1184,7 @@ export function ProvidersSettings({
|
|||||||
className="group settings-list-row flex w-full items-center justify-between gap-4 py-2.5 text-left transition-colors settings-hover"
|
className="group settings-list-row flex w-full items-center justify-between gap-4 py-2.5 text-left transition-colors settings-hover"
|
||||||
>
|
>
|
||||||
<span className="flex min-w-0 items-center gap-3">
|
<span className="flex min-w-0 items-center gap-3">
|
||||||
<span className="grid h-9 w-9 shrink-0 place-items-center rounded-[10px] bg-muted text-muted-foreground">
|
<span className="grid h-8 w-8 shrink-0 place-items-center rounded-[9px] bg-muted text-muted-foreground">
|
||||||
<Plus className="h-5 w-5" aria-hidden />
|
<Plus className="h-5 w-5" aria-hidden />
|
||||||
</span>
|
</span>
|
||||||
<span className="truncate text-[14px] font-medium text-foreground">
|
<span className="truncate text-[14px] font-medium text-foreground">
|
||||||
@@ -1280,7 +1280,7 @@ export function ProviderIcon({
|
|||||||
<span
|
<span
|
||||||
data-testid={`provider-logo-${provider}`}
|
data-testid={`provider-logo-${provider}`}
|
||||||
className={cn(
|
className={cn(
|
||||||
"relative grid h-9 w-9 shrink-0 place-items-center overflow-hidden rounded-[10px] text-[12px] font-semibold text-muted-foreground",
|
"relative grid h-8 w-8 shrink-0 place-items-center overflow-hidden rounded-[9px] text-[11px] font-semibold text-muted-foreground",
|
||||||
showLoadedLogo ? "bg-transparent" : "bg-muted",
|
showLoadedLogo ? "bg-transparent" : "bg-muted",
|
||||||
)}
|
)}
|
||||||
aria-hidden
|
aria-hidden
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ describe("settings provider icons", () => {
|
|||||||
afterEach(cleanup);
|
afterEach(cleanup);
|
||||||
|
|
||||||
function expectFootprint(icon: Element) {
|
function expectFootprint(icon: Element) {
|
||||||
expect(icon).toHaveClass("h-9", "w-9", "shrink-0", "overflow-hidden", "rounded-[10px]");
|
expect(icon).toHaveClass("h-8", "w-8", "shrink-0", "overflow-hidden", "rounded-[9px]");
|
||||||
expect(icon.className.split(/\s+/).some((value) => value.startsWith("border"))).toBe(false);
|
expect(icon.className.split(/\s+/).some((value) => value.startsWith("border"))).toBe(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user