mirror of
https://github.com/pheralb/svgl.git
synced 2025-02-06 06:58:04 +08:00
style: 💄 Add text wrap balance in title card and center text for aling text when apply balance
This commit is contained in:
parent
b20866a459
commit
24d7ee39ba
@ -52,7 +52,7 @@
|
||||
alt={svgInfo.title}
|
||||
/>
|
||||
<div class="mb-3 flex flex-col items-center justify-center">
|
||||
<p class="truncate text-[15px] font-medium">{svgInfo.title}</p>
|
||||
<p class="truncate text-[15px] font-medium text-balance text-center">{svgInfo.title}</p>
|
||||
<a
|
||||
href={`/directory/${svgInfo.category.toLowerCase()}`}
|
||||
class="text-sm lowercase text-neutral-500 hover:underline">{svgInfo.category}</a
|
||||
|
@ -16,5 +16,13 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
},
|
||||
plugins: []
|
||||
plugins: [
|
||||
({ addUtilities }) => {
|
||||
addUtilities({
|
||||
'.text-balance': {
|
||||
'text-wrap': 'balance'
|
||||
}
|
||||
});
|
||||
}
|
||||
]
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user