fix: tags were misaligned on portfolioitems

Changed files
+2 -2
src
+1 -1
src/components/PortfolioItem.astro
···
<span class="text-xl flex gap-2 items-center">
<LucideIcon name=`${iconName}` width="20" height="20" style={`stroke:${colorCss}`} />
<span class="group-hover:underline font-bold">{title} </span>
-
<span class="hidden md:block">
{tag && tagcolor && (
<Tag text={tag} color={tagcolor}/>
)}
···
<span class="text-xl flex gap-2 items-center">
<LucideIcon name=`${iconName}` width="20" height="20" style={`stroke:${colorCss}`} />
<span class="group-hover:underline font-bold">{title} </span>
+
<span class="hidden md:flex items-center">
{tag && tagcolor && (
<Tag text={tag} color={tagcolor}/>
)}
+1 -1
src/components/Tag.astro
···
const { text, color } = Astro.props
const colorCss = "var(" + color + "-700)"
---
-
<span class="p-1 pl-2 pr-2 text-xs rounded-full scale-95 font-bold bg-ctp-base border border-ctp-surface0"
style={`color:${colorCss};`}>
{text}
</span>
···
const { text, color } = Astro.props
const colorCss = "var(" + color + "-700)"
---
+
<span class="p-1 pl-2 pr-2 text-xs rounded-full font-bold bg-ctp-base border border-ctp-surface0"
style={`color:${colorCss};`}>
{text}
</span>