Skip to content

Commit 1dda704

Browse files
authored
Improve/start analysis (#109)
* improve(start-analysis): add advanced options and rework layout * style(dashboard): fix right side data table alignment
1 parent 57c285d commit 1dda704

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/api/database.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { apiAuthenticated } from '@/api/index.ts';
1+
// import { apiAuthenticated } from '@/api/index.ts';
2+
import axios from 'axios';
23

34
export const queryPosition = async (fen: string) => {
4-
return await apiAuthenticated.get(`/pos?fen=${fen}`);
5+
return await axios.get(`http://127.0.0.1:3001/pos?fen=${fen}`);
56
};

src/pages/dashboard/dashboard.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ export const Dashboard = () => {
2424
}
2525

2626
return (
27-
<div className="container h-full p-16 flex flex-col gap-4 content-center">
28-
<p className="text-4xl">{t('title')}</p>
29-
<DataTable columns={columns} data={data || []} />
27+
<div className="w-full h-full p-16 flex content-center">
28+
<div className="container flex flex-col gap-4 overflow-y-auto">
29+
<p className="text-4xl">{t('title')}</p>
30+
<DataTable columns={columns} data={data || []} />
31+
</div>
3032
</div>
3133
);
3234
};

0 commit comments

Comments
 (0)