fix: document title truncation (#1467)

Truncates the document title across various instances where it previously hadn't been truncated.
This commit is contained in:
Catalin Pit
2024-11-27 01:53:48 +02:00
committed by GitHub
parent 337bdb3553
commit e6d4005cd1
9 changed files with 54 additions and 19 deletions

View File

@ -63,7 +63,10 @@ export const TemplateEditPageView = async ({ params, team }: TemplateEditPageVie
<Trans>Template</Trans>
</Link>
<h1 className="mt-4 truncate text-2xl font-semibold md:text-3xl" title={template.title}>
<h1
className="mt-4 block max-w-[20rem] truncate text-2xl font-semibold md:max-w-[30rem] md:text-3xl"
title={template.title}
>
{template.title}
</h1>