mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-15 12:19:17 +00:00
Fix image source for script logos across components to consistently use the "/ProxmoxVE/logo.png" path
This commit is contained in:
parent
3f21155d53
commit
f273dfc855
@ -104,13 +104,13 @@ export default function ScriptAccordion({
|
||||
>
|
||||
<div className="flex items-center">
|
||||
<Image
|
||||
src={script.logo || "logo.png"}
|
||||
src={script.logo || "/ProxmoxVE/logo.png"}
|
||||
height={16}
|
||||
width={16}
|
||||
unoptimized
|
||||
onError={(e) =>
|
||||
((e.currentTarget as HTMLImageElement).src =
|
||||
"logo.png")
|
||||
"/ProxmoxVE/logo.png")
|
||||
}
|
||||
alt={script.name}
|
||||
className="mr-1 w-4 h-4 rounded-full"
|
||||
|
@ -92,11 +92,15 @@ export function LatestScripts({ items }: { items: Category[] }) {
|
||||
<CardTitle className="flex items-center gap-3">
|
||||
<div className="flex h-16 w-16 items-center justify-center rounded-lg bg-accent p-1">
|
||||
<Image
|
||||
src={script.logo || "logo.png"}
|
||||
src={script.logo || "/ProxmoxVE/logo.png"}
|
||||
unoptimized
|
||||
height={64}
|
||||
width={64}
|
||||
alt=""
|
||||
onError={(e) =>
|
||||
((e.currentTarget as HTMLImageElement).src =
|
||||
"/ProxmoxVE/logo.png")
|
||||
}
|
||||
className="h-11 w-11 object-contain"
|
||||
/>
|
||||
</div>
|
||||
@ -161,10 +165,14 @@ export function MostViewedScripts({ items }: { items: Category[] }) {
|
||||
<div className="flex max-h-16 min-h-16 min-w-16 max-w-16 items-center justify-center rounded-lg bg-accent p-1">
|
||||
<Image
|
||||
unoptimized
|
||||
src={script.logo || "logo.png"}
|
||||
src={script.logo || "/ProxmoxVE/logo.png"}
|
||||
height={64}
|
||||
width={64}
|
||||
alt=""
|
||||
onError={(e) =>
|
||||
((e.currentTarget as HTMLImageElement).src =
|
||||
"/ProxmoxVE/logo.png")
|
||||
}
|
||||
className="h-11 w-11 object-contain"
|
||||
/>
|
||||
</div>
|
||||
|
@ -40,10 +40,11 @@ function ScriptItem({
|
||||
<div className="flex">
|
||||
<Image
|
||||
className="h-32 w-32 rounded-lg bg-accent/60 object-contain p-3 shadow-md"
|
||||
src={item.logo || "logo.png"}
|
||||
src={item.logo || "/ProxmoxVE/logo.png"}
|
||||
width={400}
|
||||
onError={(e) =>
|
||||
((e.currentTarget as HTMLImageElement).src = "logo.png")
|
||||
((e.currentTarget as HTMLImageElement).src =
|
||||
"/ProxmoxVE/logo.png")
|
||||
}
|
||||
height={400}
|
||||
alt={item.name}
|
||||
|
@ -102,10 +102,10 @@ export default function CommandMenu() {
|
||||
>
|
||||
<div className="flex gap-2" onClick={() => setOpen(false)}>
|
||||
<Image
|
||||
src={script.logo || "logo.png"}
|
||||
src={script.logo || "/ProxmoxVE/logo.png"}
|
||||
onError={(e) =>
|
||||
((e.currentTarget as HTMLImageElement).src =
|
||||
"logo.png")
|
||||
"/ProxmoxVE/logo.png")
|
||||
}
|
||||
unoptimized
|
||||
width={16}
|
||||
|
Loading…
Reference in New Issue
Block a user