mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-15 07:36:27 -05:00
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user