fix: too long description previews

This commit is contained in:
Kentai Radiquum 2024-08-18 13:32:22 +05:00
parent 33fc67edf8
commit 723b620749
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
2 changed files with 3 additions and 3 deletions

View file

@ -33,11 +33,11 @@ export const CollectionLink = (props: any) => {
)}
</div>
<div className="absolute bottom-0 left-0 px-2 py-2 lg:translate-y-[100%] group-hover:lg:translate-y-0 transition-transform">
<p className="text-sm font-bold text-white transition-transform lg:-translate-y-10 group-hover:lg:translate-y-0 xl:text-base lg:text-lg">
<p className="text-sm font-bold text-white transition-transform lg:-translate-y-[calc(100%_+_1rem)] group-hover:lg:translate-y-0 xl:text-base lg:text-lg">
{props.title}
</p>
<p className="text-xs text-white xl:text-base lg:text-lg right-2">
{props.description}
{props.description.substring(0, 300)}
</p>
</div>
</div>

View file

@ -94,7 +94,7 @@ export const ReleaseLink169 = (props: any) => {
)}
</div>
<div className="absolute bottom-0 left-0 px-2 py-2 lg:translate-y-[100%] group-hover:lg:translate-y-0 transition-transform">
<p className="text-sm font-bold text-white transition-transform lg:-translate-y-10 group-hover:lg:translate-y-0 xl:text-base lg:text-lg">
<p className="text-sm font-bold text-white transition-transform lg:-translate-y-[calc(100%_+_1rem)] group-hover:lg:translate-y-0 xl:text-base lg:text-lg">
{props.title_ru}
</p>
<p className="text-xs text-white xl:text-base lg:text-lg right-2">