Fixed layout for external link icons

This commit is contained in:
maziggy
2025-12-09 13:20:09 +00:00
parent 2683630729
commit 9504f4fc59
7 changed files with 9 additions and 9 deletions
@@ -166,7 +166,7 @@ export function AddExternalLinkModal({ link, onClose }: AddExternalLinkModalProp
<div className="flex items-center gap-3">
<div className="p-2 rounded-full bg-bambu-green/20 text-bambu-green">
{useCustomIcon && customIconPreview ? (
<img src={customIconPreview} alt="" className={`w-5 h-5 rounded ${theme === 'dark' ? 'invert brightness-200' : ''}`} />
<img src={customIconPreview} alt="" className={`w-5 h-5 rounded ${theme === 'dark' ? 'invert opacity-[0.65]' : 'opacity-60'}`} />
) : (
<PresetIcon className="w-5 h-5" />
)}
@@ -233,7 +233,7 @@ export function AddExternalLinkModal({ link, onClose }: AddExternalLinkModalProp
/>
{useCustomIcon && customIconPreview ? (
<div className="flex items-center gap-2">
<img src={customIconPreview} alt="Custom icon" className={`w-8 h-8 rounded border border-bambu-dark-tertiary ${theme === 'dark' ? 'invert brightness-200' : ''}`} />
<img src={customIconPreview} alt="Custom icon" className={`w-8 h-8 rounded border border-bambu-dark-tertiary ${theme === 'dark' ? 'invert opacity-[0.65]' : 'opacity-60'}`} />
<button
type="button"
onClick={handleRemoveCustomIcon}
+1 -1
View File
@@ -359,7 +359,7 @@ export function Layout() {
<img
src={`/api/v1/external-links/${link.id}/icon`}
alt=""
className={`w-5 h-5 flex-shrink-0 ${theme === 'dark' ? 'invert brightness-200' : ''}`}
className={`w-5 h-5 flex-shrink-0 ${theme === 'dark' ? 'invert opacity-[0.65]' : 'opacity-60'}`}
/>
) : (
LinkIcon && <LinkIcon className="w-5 h-5 flex-shrink-0" />