From 5a9d36efa993653d51a1a217ee1313bfdfcc9a8e Mon Sep 17 00:00:00 2001 From: Amirhossein Khalili Date: Thu, 11 Jun 2026 22:24:15 +0330 Subject: [PATCH] fix(profile): improve styling of profile page --- src/views/Profile.tsx | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/src/views/Profile.tsx b/src/views/Profile.tsx index be79cf9..fa9ddad 100644 --- a/src/views/Profile.tsx +++ b/src/views/Profile.tsx @@ -63,11 +63,11 @@ function SectionTitle({ }) { return (
-
- {title} +
+ {title}
{description ? {description} : null}
@@ -98,10 +98,10 @@ function TabButton({ : "border-border/70 bg-background/70 text-muted-foreground hover:bg-muted/50 hover:text-foreground", ].join(" ")} > + {label} {formatNumberPersian(count)} - {label} ); } @@ -553,7 +553,6 @@ export default function Profile() { @@ -589,7 +588,6 @@ export default function Profile() { @@ -624,20 +622,20 @@ export default function Profile() {
-
- setEventTab(value as EventTab)} /> - setEventTab(value as EventTab)} /> - setEventTab(value as EventTab)} /> -
{regsLoading ?

در حال بارگذاری فعالیت‌های رویدادی...

: null} {regsError ?

خطا در دریافت ثبت‌نام‌های رویدادی

: null} {activeEventItems.length ? activeEventItems.map(renderRegistrationRow) : ( -
+
موردی در این بخش ثبت نشده است.
)}
+
+ setEventTab(value as EventTab)} /> + setEventTab(value as EventTab)} /> + setEventTab(value as EventTab)} /> +
@@ -647,17 +645,10 @@ export default function Profile() {
-
- setBlogTab(value as BlogTab)} /> - setBlogTab(value as BlogTab)} /> - setBlogTab(value as BlogTab)} /> - setBlogTab(value as BlogTab)} /> -
{blogTab === "liked" ? ( blogActivity?.liked_posts.length ? blogActivity.liked_posts.map(renderPostRow) : ( @@ -680,6 +671,12 @@ export default function Profile() { ) ) : null}
+
+ setBlogTab(value as BlogTab)} /> + setBlogTab(value as BlogTab)} /> + setBlogTab(value as BlogTab)} /> + setBlogTab(value as BlogTab)} /> +
@@ -699,7 +696,7 @@ function EmptyBlogActivity({ text: string; }) { return ( -
+
{text}