title slice length

This commit is contained in:
christian 2024-06-10 00:59:54 +02:00
parent 5ebe9bd55f
commit 6d199eb924

View File

@ -49,7 +49,7 @@ export default async function JobCard(props: { job: JobPosting }) {
/>
<div className="flex flex-col justify-start">
<h2 className="text-xl sm:text-2xl text-left block sm:hidden">
{title.length > 40 ? title.slice(0, 40) + "..." : title}
{title.length > 50 ? title.slice(0, 50) + "..." : title}
</h2>
<h2 className="text-2xl sm:text-2xl text-left sm:block hidden">
{title}