fix: use relative path for logo so it resolves in packaged app

./openscreen.png resolves correctly both in dev (Vite serves public/)
and in production (loadFile sets base to dist/, where public assets land
inside the asar). getAssetPath points to extraResources, which is the
wrong location for bundled dist assets.
This commit is contained in:
makaradam
2026-05-02 14:33:14 +02:00
parent b2cc722613
commit e7e493294b
@@ -7,7 +7,6 @@ import {
DialogTitle,
} from "@/components/ui/dialog";
import { useScopedT } from "@/contexts/I18nContext";
import getAssetPath from "@/lib/assetPath";
interface UnsavedChangesDialogProps {
isOpen: boolean;
@@ -31,7 +30,7 @@ export function UnsavedChangesDialog({
<DialogHeader className="mb-5">
<div className="flex items-center gap-3">
<img
src={getAssetPath("openscreen.png")}
src="./openscreen.png"
alt=""
aria-hidden="true"
className="w-9 h-9 rounded-xl flex-shrink-0"