-
اعلانها
+
اعلانها
{unread > 0 ? `${unread} خواندهنشده` : "همه خوانده شده"}
@@ -133,7 +133,7 @@ export function NotificationBell() {
diff --git a/frontend/src/components/quiz-experience.tsx b/frontend/src/components/quiz-experience.tsx
index 07977c5..e9f55f5 100644
--- a/frontend/src/components/quiz-experience.tsx
+++ b/frontend/src/components/quiz-experience.tsx
@@ -119,7 +119,7 @@ export function QuizExperience({ lessonId }: { lessonId: number }) {
return (
- آزمون در دسترس نیست
+ آزمون در دسترس نیست
{msg}
@@ -188,7 +188,7 @@ export function QuizExperience({ lessonId }: { lessonId: number }) {
{qi + 1}
-
{q.question}
+
{q.question}
{q.options.map((opt, oi) => {
@@ -198,7 +198,7 @@ export function QuizExperience({ lessonId }: { lessonId: number }) {
key={oi}
onClick={() => select(q.id, oi)}
className={cn(
- "flex items-center gap-3 rounded-md border px-4 py-3 text-right text-sm transition-colors",
+ "flex items-center gap-3 rounded-md border-2 px-4 py-3 text-right text-sm transition-colors",
active
? "border-primary bg-primary/10 ring-1 ring-primary"
: "border-border hover:bg-muted/50"
@@ -206,7 +206,7 @@ export function QuizExperience({ lessonId }: { lessonId: number }) {
>
@@ -305,7 +305,7 @@ function HeartsMeterInline({ hearts, infinite }: { hearts: number; infinite?: bo
function PassScreen({ result, onNext, onLeagues }: { result: QuizResult; onNext: () => void; onLeagues: () => void }) {
return (
-
+
diff --git a/frontend/src/components/section-nav.tsx b/frontend/src/components/section-nav.tsx
index 13c509b..f2ad6a1 100644
--- a/frontend/src/components/section-nav.tsx
+++ b/frontend/src/components/section-nav.tsx
@@ -103,21 +103,26 @@ export function SectionPanel({
titleId,
title,
description,
+ actions,
children,
}: {
id?: string;
titleId: string;
title: string;
description: string;
+ actions?: ReactNode;
children: ReactNode;
}) {
return (
-
- {title}
-
- {description}
+
+
+
{title}
+ {description &&
{description}
}
+
+ {actions &&
{actions}
}
+
{children}
diff --git a/frontend/src/components/ui/card.tsx b/frontend/src/components/ui/card.tsx
index d60d1de..838d8e9 100644
--- a/frontend/src/components/ui/card.tsx
+++ b/frontend/src/components/ui/card.tsx
@@ -24,7 +24,7 @@ CardHeader.displayName = "CardHeader";
const CardTitle = React.forwardRef
>(
({ className, ...props }, ref) => (
-
+
)
);
CardTitle.displayName = "CardTitle";
diff --git a/frontend/src/components/ui/dialog.tsx b/frontend/src/components/ui/dialog.tsx
index 23c2ff8..808854c 100644
--- a/frontend/src/components/ui/dialog.tsx
+++ b/frontend/src/components/ui/dialog.tsx
@@ -78,7 +78,7 @@ const DialogTitle = React.forwardRef<
>(({ className, ...props }, ref) => (
));
diff --git a/frontend/src/components/ui/progress.tsx b/frontend/src/components/ui/progress.tsx
index af93506..9871fe2 100644
--- a/frontend/src/components/ui/progress.tsx
+++ b/frontend/src/components/ui/progress.tsx
@@ -16,12 +16,13 @@ const Progress = React.forwardRef(
return (