fix(desktop): resolve social media icons via publicAssetPath

Bare absolute paths like /icons/bilibili.svg failed under Electron's
file:// protocol. Route them through publicAssetPath so they resolve
against the relative base URL, matching the GitHub and app icons.
This commit is contained in:
程序员阿江(Relakkes) 2026-06-03 13:50:42 +08:00
parent 65fcc4f37d
commit 303f2bdf0e

View File

@ -3830,7 +3830,7 @@ function AboutSettings() {
onClick={() => openUrl(link.url)}
className="w-full flex items-center gap-3 px-4 py-2.5 rounded-lg hover:bg-[var(--color-surface-hover)] transition-colors cursor-pointer"
>
<img src={link.icon} alt={link.name} className="w-4 h-4 opacity-60" />
<img src={publicAssetPath(link.icon)} alt={link.name} className="w-4 h-4 opacity-60" />
<span className="text-sm text-[var(--color-text-primary)]">{link.label}</span>
<span className="text-xs text-[var(--color-text-tertiary)] ml-auto">{link.name}</span>
</button>