From 40af17e08fdcc4496448727fbb997cf633211ea6 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Mon, 15 Apr 2024 14:00:12 +0200 Subject: [PATCH] misc fixes --- src/frontend/src/components/nav/PartCategoryTree.tsx | 2 +- src/frontend/src/main.css.ts | 9 +-------- src/frontend/src/pages/Index/Scan.tsx | 9 ++++----- src/frontend/src/tables/InvenTreeTable.tsx | 2 +- 4 files changed, 7 insertions(+), 15 deletions(-) diff --git a/src/frontend/src/components/nav/PartCategoryTree.tsx b/src/frontend/src/components/nav/PartCategoryTree.tsx index f1ef938517..de1c496782 100644 --- a/src/frontend/src/components/nav/PartCategoryTree.tsx +++ b/src/frontend/src/components/nav/PartCategoryTree.tsx @@ -157,7 +157,7 @@ export function PartCategoryTree({ RenderIcon={renderIcon} defaultSelectedNodes={selectedCategory ? [selectedCategory] : []} showEmptyItems={false} - theme={theme.colorScheme} + theme={prefferedColorScheme} themes={themes} /> diff --git a/src/frontend/src/main.css.ts b/src/frontend/src/main.css.ts index c0f2e165b7..b07cbd7f17 100644 --- a/src/frontend/src/main.css.ts +++ b/src/frontend/src/main.css.ts @@ -130,14 +130,7 @@ export const tabs = style({ }); export const tabsList = style({ - borderBottom: '0 !important', - '& > button:first-of-type': { - paddingLeft: '0 !important' - }, - - '& > button:last-of-type': { - paddingRight: '0 !important' - } + borderBottom: '0 !important' }); export const tab = style({ diff --git a/src/frontend/src/pages/Index/Scan.tsx b/src/frontend/src/pages/Index/Scan.tsx index 8784084e3d..9a20100bf7 100644 --- a/src/frontend/src/pages/Index/Scan.tsx +++ b/src/frontend/src/pages/Index/Scan.tsx @@ -3,7 +3,6 @@ import { ActionIcon, Button, Checkbox, - Col, Grid, Group, ScrollArea, @@ -285,7 +284,7 @@ export default function Scan() { - + @@ -353,8 +352,8 @@ export default function Scan() { )} - - + + - + ); diff --git a/src/frontend/src/tables/InvenTreeTable.tsx b/src/frontend/src/tables/InvenTreeTable.tsx index 977824b043..8939ccec4c 100644 --- a/src/frontend/src/tables/InvenTreeTable.tsx +++ b/src/frontend/src/tables/InvenTreeTable.tsx @@ -512,7 +512,7 @@ export function InvenTreeTable({ // Callback when a row is clicked const handleRowClick = useCallback( - (record: any, index: number, event: any) => { + ({ event, record, index }: { event: any; record: any; index: number }) => { if (props.onRowClick) { // If a custom row click handler is provided, use that props.onRowClick(record, index, event);