feat: add continue watching section to the release page

This commit is contained in:
Kentai Radiquum 2025-04-06 20:35:24 +05:00
parent ff2dbdfac1
commit bdbb8cc548
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
3 changed files with 98 additions and 4 deletions

View file

@ -22,6 +22,7 @@ export const ReleaseLinkList = (props: {
settings?: {
showGenres?: boolean;
showDescription?: boolean;
showOrigTitle?: boolean;
};
chipsSettings?: {
enabled: boolean;
@ -49,6 +50,7 @@ export const ReleaseLinkList = (props: {
const settings = {
showGenres: true,
showDescription: true,
showOrigTitle: true,
...props.settings,
};
const chipsSettings = props.chipsSettings || {};
@ -86,7 +88,7 @@ export const ReleaseLinkList = (props: {
return (
<span
key={`release_${props.id}_genre_${genre}_${index}`}
className="text-sm font-light dark:text-white"
className="text-sm font-light leading-none dark:text-white"
>
{index > 0 && ", "}
{genre}
@ -95,12 +97,12 @@ export const ReleaseLinkList = (props: {
})}
</div>
{props.title_ru && (
<p className="text-lg font-bold dark:text-white">
<p className="text-lg font-bold line-clamp-2 dark:text-white">
{props.title_ru}
</p>
)}
{props.title_original && (
<p className="text-sm text-gray-600 dark:text-gray-300">
{settings.showOrigTitle && props.title_original && (
<p className="text-sm text-gray-600 line-clamp-2 dark:text-gray-300">
{props.title_original}
</p>
)}