From 1c98cf5c7d9e82dbf25b98c68fb78d07e02ecf09 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sat, 8 Jun 2024 14:14:26 +0800 Subject: [PATCH] fix: fix a style bug which survey table too width and broke style --- src/client/components/DataTable.tsx | 2 +- src/client/routes/survey/$surveyId/index.tsx | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/client/components/DataTable.tsx b/src/client/components/DataTable.tsx index 0aef69c..53f78e3 100644 --- a/src/client/components/DataTable.tsx +++ b/src/client/components/DataTable.tsx @@ -75,7 +75,7 @@ export function DataTable({ {headerGroup.headers.map((header) => { return ( - + {header.isPlaceholder ? null : flexRender( diff --git a/src/client/routes/survey/$surveyId/index.tsx b/src/client/routes/survey/$surveyId/index.tsx index 1f8c5a5..9666070 100644 --- a/src/client/routes/survey/$surveyId/index.tsx +++ b/src/client/routes/survey/$surveyId/index.tsx @@ -21,6 +21,7 @@ import { useMemo } from 'react'; import { SurveyDownloadBtn } from '@/components/survey/SurveyDownloadBtn'; import dayjs from 'dayjs'; import { SurveyUsageBtn } from '@/components/survey/SurveyUsageBtn'; +import { Scrollbar } from '@radix-ui/react-scroll-area'; type SurveyResultItem = AppRouterOutput['survey']['resultList']['items'][number]; @@ -122,10 +123,8 @@ function PageComponent() { /> } > - - - -
+
+
{t('Count')} @@ -140,10 +139,12 @@ function PageComponent() {
-
+ + + -
- + +
); }