Fix squished breadcrumbs logo on Firefox

Closes #2970
This commit is contained in:
Kalle
2026-04-12 17:03:58 +03:00
parent 79be3933dc
commit e1ddec5516
2 changed files with 29 additions and 12 deletions

View File

@@ -86,11 +86,18 @@
}
}
.pageIconWrapper {
display: flex;
align-items: center;
flex-shrink: 0;
width: 28px;
height: 28px;
animation: fadeInFull 200ms ease-out 150ms both;
}
.pageIcon {
width: 28px;
height: 28px;
flex-shrink: 0;
animation: fadeInFull 200ms ease-out 150ms both;
object-fit: cover;
}

View File

@@ -544,16 +544,26 @@ function PageIcon({ crumb }: { crumb: Breadcrumb }) {
const isExternal = crumb.imgPath.includes(".");
const iconClass = clsx(styles.pageIcon, "rounded");
return isExternal ? (
<img src={crumb.imgPath} alt="" className={iconClass} />
) : (
<Image
path={crumb.imgPath}
alt=""
className={iconClass}
width={20}
height={20}
/>
return (
<div className={styles.pageIconWrapper}>
{isExternal ? (
<img
src={crumb.imgPath}
alt=""
className={iconClass}
width={28}
height={28}
/>
) : (
<Image
path={crumb.imgPath}
alt=""
className={iconClass}
width={20}
height={20}
/>
)}
</div>
);
}