style: change profile widgets positions

This commit is contained in:
Kentai Radiquum 2024-08-25 17:25:33 +05:00
parent 4276cc1314
commit 7a0b71020f
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
2 changed files with 21 additions and 25 deletions

View file

@ -24,14 +24,14 @@ const CarouselTheme = {
export const ProfileReleaseRatings = (props: any) => { export const ProfileReleaseRatings = (props: any) => {
return ( return (
<Card> <Card className="h-fit">
<h1 className="text-2xl font-bold">Оценки</h1> <h1 className="text-2xl font-bold">Оценки</h1>
<div className="max-w-[700px] min-h-[200px]"> <div className="max-w-[700px] min-h-[200px]">
<Carousel theme={CarouselTheme}> <Carousel theme={CarouselTheme}>
{props.ratings.map((release) => { {props.ratings.map((release) => {
return ( return (
<div <div
className="flex gap-4 mx-16" className="flex gap-4 mx-20"
key={`vote-${release.id}`} key={`vote-${release.id}`}
> >
<Image <Image

View file

@ -134,16 +134,18 @@ export const ProfilePage = (props: any) => {
friendsCount={user.friend_count} friendsCount={user.friend_count}
/> />
)} )}
{!user.is_stats_hidden && (
<ProfileReleaseRatings ratings={user.votes} />
)}
</div>
<div className="flex flex-col gap-2 flex-1">
<ProfileActions <ProfileActions
isMyProfile={isMyProfile} isMyProfile={isMyProfile}
profile_id={user.id} profile_id={user.id}
isFriendRequestsDisallowed={user.is_friend_requests_disallowed} isFriendRequestsDisallowed={user.is_friend_requests_disallowed}
/> />
{!user.is_stats_hidden && ( {!user.is_stats_hidden && (
<ProfileReleaseRatings ratings={user.votes} /> <>
)}
</div>
<div className="flex flex-col gap-2 flex-1">
<ProfileStats <ProfileStats
lists={[ lists={[
user.watching_count, user.watching_count,
@ -156,15 +158,9 @@ export const ProfilePage = (props: any) => {
watched_time={user.watched_time} watched_time={user.watched_time}
/> />
<ProfileWatchDynamic watchDynamic={user.watch_dynamics || []} /> <ProfileWatchDynamic watchDynamic={user.watch_dynamics || []} />
</div> </>
{/*
{!user.is_stats_hidden && (
<div className="flex flex-col gap-2">
</div>
)} )}
<div className="[grid-column:1] xl:[grid-row:3]"> </div>
</div>*/}
</div> </div>
</> </>
); );