From 768ddeb85ab0fc6b3a203d0cb220c9eca1b87130 Mon Sep 17 00:00:00 2001 From: John Scolaro Date: Sat, 21 Oct 2023 20:16:10 +1000 Subject: [PATCH] Charts actually fill screen. What I mean by this is charts previously always had about 8px of overflow which is infuriating. Now it's perfect. However, this perfection then broke tables, so the tables needed to be fixed too. --- frontend/app/home/[key]/components/table/table.tsx | 6 +++--- frontend/app/home/[key]/page.tsx | 4 ++-- frontend/app/home/layout.tsx | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/app/home/[key]/components/table/table.tsx b/frontend/app/home/[key]/components/table/table.tsx index 7c50bb3..5cd6fd4 100644 --- a/frontend/app/home/[key]/components/table/table.tsx +++ b/frontend/app/home/[key]/components/table/table.tsx @@ -11,13 +11,13 @@ export default function Table({ }) { return ( <> - +
{show_headings && {column_info.map((column) => get_headings(column))}} {table_data[column_info[0].column_name].map((_, index) => - get_row(index, table_data, column_info), + get_row(index, table_data, column_info) )}
@@ -32,7 +32,7 @@ function get_headings(column: { column_name: string; column_type: string }) { function get_row( index: number, table_data: { [key: string]: any[] }, - column_info: { column_name: string; column_type: string }[], + column_info: { column_name: string; column_type: string }[] ) { return ( diff --git a/frontend/app/home/[key]/page.tsx b/frontend/app/home/[key]/page.tsx index 8392712..ee7774c 100644 --- a/frontend/app/home/[key]/page.tsx +++ b/frontend/app/home/[key]/page.tsx @@ -44,7 +44,7 @@ function PageContentComponent({ params, data }: { params: { key: string }; data: if (data.type == "PlotTab") { return ( +
{/* Content */} -
+
{children}