2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-07 04:12:11 +00:00

misc fixes

This commit is contained in:
Matthias Mair
2024-04-15 14:00:12 +02:00
parent 78243027b2
commit 40af17e08f
4 changed files with 7 additions and 15 deletions

View File

@@ -157,7 +157,7 @@ export function PartCategoryTree({
RenderIcon={renderIcon}
defaultSelectedNodes={selectedCategory ? [selectedCategory] : []}
showEmptyItems={false}
theme={theme.colorScheme}
theme={prefferedColorScheme}
themes={themes}
/>
</Stack>

View File

@@ -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({

View File

@@ -3,7 +3,6 @@ import {
ActionIcon,
Button,
Checkbox,
Col,
Grid,
Group,
ScrollArea,
@@ -285,7 +284,7 @@ export default function Scan() {
</Group>
<Space h={'md'} />
<Grid maw={'100%'}>
<Col span={4}>
<Grid.Col span={4}>
<Stack>
<Stack gap="xs">
<Group justify="apart">
@@ -353,8 +352,8 @@ export default function Scan() {
)}
</Stack>
</Stack>
</Col>
<Col span={8}>
</Grid.Col>
<Grid.Col span={8}>
<Group justify="apart">
<TitleWithDoc
order={3}
@@ -372,7 +371,7 @@ export default function Scan() {
selection={selection}
setSelection={setSelection}
/>
</Col>
</Grid.Col>
</Grid>
</>
);

View File

@@ -512,7 +512,7 @@ export function InvenTreeTable<T = any>({
// 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);