From b05b03b49f5977d22804e96010548c807718357f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Boduro=C4=9Flu?= <80620802+burakboduroglu@users.noreply.github.com> Date: Fri, 25 Sep 2026 14:27:23 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=93=90=20let=20detail=20pages=20us?= =?UTF-8?q?e=20the=20full=20width=20and=20drop=20the=20holidays=20card?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - remove the 1100/1240/1440px and max-w-4xl caps from detail pages - holidays table sits in a plain section like every other list page - success trend chart spans two columns on the student and teacher boards and only keeps a 480px floor, so it stops scrolling sideways inside its card on a 1280px screen --- src/components/ui/chart-line.tsx | 4 +++- src/pages/admin-user-detail-page.tsx | 2 +- src/pages/bank-question-detail-page.tsx | 2 +- src/pages/class-detail-page.tsx | 2 +- src/pages/course-detail-page.tsx | 2 +- src/pages/dashboard-page.tsx | 5 ++++- src/pages/exam-detail-page.tsx | 2 +- src/pages/holidays-page.tsx | 2 +- src/pages/homework-detail-page.tsx | 2 +- src/pages/instance-detail-page.tsx | 2 +- src/pages/question-detail-page.tsx | 2 +- src/pages/question-generation-page.tsx | 2 +- 12 files changed, 17 insertions(+), 12 deletions(-) diff --git a/src/components/ui/chart-line.tsx b/src/components/ui/chart-line.tsx index 893d2d8..319781c 100644 --- a/src/components/ui/chart-line.tsx +++ b/src/components/ui/chart-line.tsx @@ -118,9 +118,11 @@ export const ChartLine: Component = (props) => { + {/* The floor only keeps axis text legible on a phone: at 640px it + forced a sideways scroller into the card on a 1280px screen. */}
`${item.label}${item.caption ? ` (${item.caption})` : ""}: ${item.formattedValue ?? item.value}`).join(", ")} diff --git a/src/pages/admin-user-detail-page.tsx b/src/pages/admin-user-detail-page.tsx index d900f42..b8e6a19 100644 --- a/src/pages/admin-user-detail-page.tsx +++ b/src/pages/admin-user-detail-page.tsx @@ -63,7 +63,7 @@ function AdminUserDetailContent() { } > {(current) => ( -
+
{error()} diff --git a/src/pages/bank-question-detail-page.tsx b/src/pages/bank-question-detail-page.tsx index 2b59615..9c5ab72 100644 --- a/src/pages/bank-question-detail-page.tsx +++ b/src/pages/bank-question-detail-page.tsx @@ -97,7 +97,7 @@ function BankQuestionDetailContent() { } > {(current) => ( -
+
{error()} diff --git a/src/pages/class-detail-page.tsx b/src/pages/class-detail-page.tsx index c3ab547..d7e0d0e 100644 --- a/src/pages/class-detail-page.tsx +++ b/src/pages/class-detail-page.tsx @@ -283,7 +283,7 @@ function ClassDetailContent() { } > {(c) => ( -
+
( }> {t("common.accessDenied")}}> -
+
-
+
( }> {t("common.accessDenied")}}> -
+
{flash()} {error()} -
+
}> void refetch()} /> diff --git a/src/pages/homework-detail-page.tsx b/src/pages/homework-detail-page.tsx index e168778..6423029 100644 --- a/src/pages/homework-detail-page.tsx +++ b/src/pages/homework-detail-page.tsx @@ -63,7 +63,7 @@ export default function HomeworkDetailPage() { fallback={}>{formatApiError(homework.error, locale())}} > {(item) => ( -
+
diff --git a/src/pages/instance-detail-page.tsx b/src/pages/instance-detail-page.tsx index 1742330..b47dbbc 100644 --- a/src/pages/instance-detail-page.tsx +++ b/src/pages/instance-detail-page.tsx @@ -334,7 +334,7 @@ function InstanceDetailContent() { } > {(inst) => ( -
+
+
}> {(q) => ( diff --git a/src/pages/question-generation-page.tsx b/src/pages/question-generation-page.tsx index 7d50a46..8719e79 100644 --- a/src/pages/question-generation-page.tsx +++ b/src/pages/question-generation-page.tsx @@ -103,7 +103,7 @@ function QuestionGenerationContent() { }; return ( -
+