mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-17 13:13:35 +08:00
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:
parent
65fcc4f37d
commit
303f2bdf0e
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user