fix: fix a style bug which survey table too width and broke style
This commit is contained in:
parent
ef49d9ebd2
commit
1c98cf5c7d
@ -75,7 +75,7 @@ export function DataTable<TData>({
|
||||
|
||||
{headerGroup.headers.map((header) => {
|
||||
return (
|
||||
<TableHead key={header.id}>
|
||||
<TableHead key={header.id} className="text-nowrap">
|
||||
{header.isPlaceholder
|
||||
? null
|
||||
: flexRender(
|
||||
|
@ -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() {
|
||||
/>
|
||||
}
|
||||
>
|
||||
<ScrollArea className="h-full overflow-hidden p-4">
|
||||
<ScrollBar orientation="horizontal" />
|
||||
|
||||
<div className="mb-4">
|
||||
<div className="h-full overflow-hidden p-4">
|
||||
<div className="mb-4 w-full">
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle>{t('Count')}</CardTitle>
|
||||
@ -140,10 +139,12 @@ function PageComponent() {
|
||||
</Card>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<ScrollArea className="w-full">
|
||||
<Scrollbar orientation="horizontal" />
|
||||
|
||||
<DataTable columns={columns} data={dataSource} />
|
||||
</div>
|
||||
</ScrollArea>
|
||||
</ScrollArea>
|
||||
</div>
|
||||
</CommonWrapper>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user