Fixed line clamp on alerts

This commit is contained in:
Lucas Oliveira 2024-06-06 19:00:10 -03:00
commit ee46ab1d71
3 changed files with 6 additions and 4 deletions

View file

@ -51,13 +51,15 @@ export default function ErrorAlert({
/> />
</div> </div>
<div className="ml-3"> <div className="ml-3">
<h3 className="error-build-foreground">{title}</h3> <h3 className="error-build-foreground line-clamp-2">{title}</h3>
{list?.length !== 0 && {list?.length !== 0 &&
list?.some((item) => item !== null && item !== undefined) ? ( list?.some((item) => item !== null && item !== undefined) ? (
<div className="error-build-message-div"> <div className="error-build-message-div">
<ul className="error-build-message-list"> <ul className="error-build-message-list">
{list.map((item, index) => ( {list.map((item, index) => (
<li key={index}>{item}</li> <li key={index} className="line-clamp-5">
{item}
</li>
))} ))}
</ul> </ul>
</div> </div>

View file

@ -47,7 +47,7 @@ export default function NoticeAlert({
/> />
</div> </div>
<div className="ml-3 flex-1 md:flex md:justify-between"> <div className="ml-3 flex-1 md:flex md:justify-between">
<p className="text-sm text-info-foreground word-break-break-word"> <p className="line-clamp-2 text-sm text-info-foreground word-break-break-word">
{title} {title}
</p> </p>
<p className="mt-3 text-sm md:ml-6 md:mt-0"> <p className="mt-3 text-sm md:ml-6 md:mt-0">

View file

@ -45,7 +45,7 @@ export default function SuccessAlert({
/> />
</div> </div>
<div className="ml-3"> <div className="ml-3">
<p className="success-alert-message">{title}</p> <p className="success-alert-message line-clamp-2">{title}</p>
</div> </div>
</div> </div>
</div> </div>