From 8d2800c2f211c7e122c56080f4713e58fd183d06 Mon Sep 17 00:00:00 2001 From: Radiquum Date: Mon, 25 Aug 2025 05:20:03 +0500 Subject: [PATCH] anix/style: change sections columns from 1 to 2 on mobile --- .../CollectionLink/CollectionLink.tsx | 83 ++++++++----------- .../CollectionsSection/CollectionsSection.tsx | 3 +- .../ReleasePoster/PosterWithStuff.tsx | 8 +- .../ReleaseSection/ReleaseSection.tsx | 2 +- app/components/UserSection/UserSection.tsx | 4 +- 5 files changed, 41 insertions(+), 59 deletions(-) diff --git a/app/components/CollectionLink/CollectionLink.tsx b/app/components/CollectionLink/CollectionLink.tsx index aee2010..a7887d1 100644 --- a/app/components/CollectionLink/CollectionLink.tsx +++ b/app/components/CollectionLink/CollectionLink.tsx @@ -5,60 +5,43 @@ import Image from "next/image"; export const CollectionLink = (props: any) => { return ( -
-
- {props.title + {""} +
+
+ -
+ {props.comment_count && ( - {props.comment_count && ( - - )} - {props.is_private && ( -
- -
- )} - {props.is_favorite && ( -
- -
- )} -
-
-
-

- {props.title} -

+ )} + {props.is_private && ( +
+
- {props.description && ( -

- {`${props.description.slice(0, 125)}${ - props.description.length > 125 ? "..." : "" - }`} -

- )} -
+ )} + {props.is_favorite && ( +
+ +
+ )} +
+
+

+ {props.title} +

+

+ {props.description} +

diff --git a/app/components/CollectionsSection/CollectionsSection.tsx b/app/components/CollectionsSection/CollectionsSection.tsx index c7b0775..6e03911 100644 --- a/app/components/CollectionsSection/CollectionsSection.tsx +++ b/app/components/CollectionsSection/CollectionsSection.tsx @@ -16,7 +16,7 @@ export const CollectionsSection = (props: {
)}
-
+
{props.isMyCollections && } {props.content.map((collection) => { return ( @@ -25,7 +25,6 @@ export const CollectionsSection = (props: {
); })} - {props.content.length == 1 && !props.isMyCollections &&
}
diff --git a/app/components/ReleasePoster/PosterWithStuff.tsx b/app/components/ReleasePoster/PosterWithStuff.tsx index 7ffbee2..4482a5a 100644 --- a/app/components/ReleasePoster/PosterWithStuff.tsx +++ b/app/components/ReleasePoster/PosterWithStuff.tsx @@ -83,7 +83,7 @@ export const PosterWithStuff = (props: { return ( {index > 0 && ", "} {genre} @@ -91,18 +91,18 @@ export const PosterWithStuff = (props: { ); })} {props.title_ru && ( -

+

{props.title_ru}

)} {props.title_original && ( -

+

{props.title_original}

)}
{settings.showDescription && props.description && ( -

+

{props.description}

)} diff --git a/app/components/ReleaseSection/ReleaseSection.tsx b/app/components/ReleaseSection/ReleaseSection.tsx index 1c23d9b..95c4763 100644 --- a/app/components/ReleaseSection/ReleaseSection.tsx +++ b/app/components/ReleaseSection/ReleaseSection.tsx @@ -14,7 +14,7 @@ export const ReleaseSection = (props: { )}
-
+
{props.content.map((release) => { return (
diff --git a/app/components/UserSection/UserSection.tsx b/app/components/UserSection/UserSection.tsx index 896ebd2..ece64fc 100644 --- a/app/components/UserSection/UserSection.tsx +++ b/app/components/UserSection/UserSection.tsx @@ -18,8 +18,8 @@ export const UserSection = (props: { sectionTitle?: string; content: any }) => {
- -

{user.login}

+ +

{user.login}