From c7a8021026035019f260f8ee2373e02881ae8766 Mon Sep 17 00:00:00 2001 From: dextmorgn Date: Wed, 5 Nov 2025 16:40:24 +0100 Subject: [PATCH] feat(app): update styles for import sheet --- .../src/components/graphs/import-preview.tsx | 198 +++++++++--------- .../src/components/graphs/import-sheet.tsx | 60 +++--- 2 files changed, 135 insertions(+), 123 deletions(-) diff --git a/flowsint-app/src/components/graphs/import-preview.tsx b/flowsint-app/src/components/graphs/import-preview.tsx index 025af6df..74056922 100644 --- a/flowsint-app/src/components/graphs/import-preview.tsx +++ b/flowsint-app/src/components/graphs/import-preview.tsx @@ -334,108 +334,108 @@ export function ImportPreview({ } return ( -
-
-
- - - {table.getHeaderGroups().map((headerGroup: any) => ( - - {headerGroup.headers.map((header: any, index: number) => { - return ( - - ) - })} - - ))} - - - {table.getRowModel().rows.map((row: any) => ( - + {/* Scrollable area */} +
+ {/* Table wrapper */} +
+
- {flexRender( - header.column.columnDef.header, - header.getContext() - )} -
+ + {table.getHeaderGroups().map((headerGroup: any) => ( + + {headerGroup.headers.map((header: any) => ( + - ) - })} - + {flexRender(header.column.columnDef.header, header.getContext())} + ))} - -
- {row.getVisibleCells().map((cell: any, index: number) => { - return ( - - {flexRender(cell.column.columnDef.cell, cell.getContext())} -
-
- - {/* Pagination */} -
-
- Showing {table.getState().pagination.pageIndex * table.getState().pagination.pageSize + 1} to{' '} - {Math.min( - (table.getState().pagination.pageIndex + 1) * table.getState().pagination.pageSize, - table.getFilteredRowModel().rows.length - )}{' '} - of {table.getFilteredRowModel().rows.length} entities -
-
- - - Page {table.getState().pagination.pageIndex + 1} of {table.getPageCount()} - - -
-
-
- {/* Actions */} -
- - -
+ {row.getVisibleCells().map((cell: any) => ( + + {flexRender(cell.column.columnDef.cell, cell.getContext())} + + ))} + + ))} + +
+ + + {/* Fixed footer: Pagination */} +
+
+ Showing {table.getState().pagination.pageIndex * table.getState().pagination.pageSize + 1} to{' '} + {Math.min( + (table.getState().pagination.pageIndex + 1) * table.getState().pagination.pageSize, + table.getFilteredRowModel().rows.length + )}{' '} + of {table.getFilteredRowModel().rows.length} entities +
+
+ + + Page {table.getState().pagination.pageIndex + 1} of {table.getPageCount()} + + +
+
+ + {/* Fixed footer: Actions */} +
+ + +
+ + ) } diff --git a/flowsint-app/src/components/graphs/import-sheet.tsx b/flowsint-app/src/components/graphs/import-sheet.tsx index e5d92592..adfe1c75 100644 --- a/flowsint-app/src/components/graphs/import-sheet.tsx +++ b/flowsint-app/src/components/graphs/import-sheet.tsx @@ -101,31 +101,43 @@ export function ImportSheet({ sketchId }: ImportSheetProps) { - - Import Entities + {/* Header stays fixed */} + + Import entities Upload a CSV, TXT, or XLSX file to import entities into your sketch -
+ {/* Optional beta banner */} +
- This import feature is in beta. There may be minor side effects. If you see any issue, please report them here to help out the community. + This import feature is in beta. There may be minor side effects. If you see any issue, please{" "} + + report them here + {" "} + to help out the community.
- -
+ {/* Main scrollable zone */} +
{!file && !analysisResult && (
-

- Drag & drop your file here -

-

- or click to browse -

+

Drag & drop your file here

+

or click to browse

)} + {/* Scrollable Import Preview */} {analysisResult && file && ( - +
+ +
)}
+ ) }