mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +00:00 
			
		
		
		
	misc fixes
This commit is contained in:
		@@ -157,7 +157,7 @@ export function PartCategoryTree({
 | 
				
			|||||||
          RenderIcon={renderIcon}
 | 
					          RenderIcon={renderIcon}
 | 
				
			||||||
          defaultSelectedNodes={selectedCategory ? [selectedCategory] : []}
 | 
					          defaultSelectedNodes={selectedCategory ? [selectedCategory] : []}
 | 
				
			||||||
          showEmptyItems={false}
 | 
					          showEmptyItems={false}
 | 
				
			||||||
          theme={theme.colorScheme}
 | 
					          theme={prefferedColorScheme}
 | 
				
			||||||
          themes={themes}
 | 
					          themes={themes}
 | 
				
			||||||
        />
 | 
					        />
 | 
				
			||||||
      </Stack>
 | 
					      </Stack>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -130,14 +130,7 @@ export const tabs = style({
 | 
				
			|||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const tabsList = style({
 | 
					export const tabsList = style({
 | 
				
			||||||
  borderBottom: '0 !important',
 | 
					  borderBottom: '0 !important'
 | 
				
			||||||
  '& > button:first-of-type': {
 | 
					 | 
				
			||||||
    paddingLeft: '0 !important'
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  '& > button:last-of-type': {
 | 
					 | 
				
			||||||
    paddingRight: '0 !important'
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const tab = style({
 | 
					export const tab = style({
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,7 +3,6 @@ import {
 | 
				
			|||||||
  ActionIcon,
 | 
					  ActionIcon,
 | 
				
			||||||
  Button,
 | 
					  Button,
 | 
				
			||||||
  Checkbox,
 | 
					  Checkbox,
 | 
				
			||||||
  Col,
 | 
					 | 
				
			||||||
  Grid,
 | 
					  Grid,
 | 
				
			||||||
  Group,
 | 
					  Group,
 | 
				
			||||||
  ScrollArea,
 | 
					  ScrollArea,
 | 
				
			||||||
@@ -285,7 +284,7 @@ export default function Scan() {
 | 
				
			|||||||
      </Group>
 | 
					      </Group>
 | 
				
			||||||
      <Space h={'md'} />
 | 
					      <Space h={'md'} />
 | 
				
			||||||
      <Grid maw={'100%'}>
 | 
					      <Grid maw={'100%'}>
 | 
				
			||||||
        <Col span={4}>
 | 
					        <Grid.Col span={4}>
 | 
				
			||||||
          <Stack>
 | 
					          <Stack>
 | 
				
			||||||
            <Stack gap="xs">
 | 
					            <Stack gap="xs">
 | 
				
			||||||
              <Group justify="apart">
 | 
					              <Group justify="apart">
 | 
				
			||||||
@@ -353,8 +352,8 @@ export default function Scan() {
 | 
				
			|||||||
              )}
 | 
					              )}
 | 
				
			||||||
            </Stack>
 | 
					            </Stack>
 | 
				
			||||||
          </Stack>
 | 
					          </Stack>
 | 
				
			||||||
        </Col>
 | 
					        </Grid.Col>
 | 
				
			||||||
        <Col span={8}>
 | 
					        <Grid.Col span={8}>
 | 
				
			||||||
          <Group justify="apart">
 | 
					          <Group justify="apart">
 | 
				
			||||||
            <TitleWithDoc
 | 
					            <TitleWithDoc
 | 
				
			||||||
              order={3}
 | 
					              order={3}
 | 
				
			||||||
@@ -372,7 +371,7 @@ export default function Scan() {
 | 
				
			|||||||
            selection={selection}
 | 
					            selection={selection}
 | 
				
			||||||
            setSelection={setSelection}
 | 
					            setSelection={setSelection}
 | 
				
			||||||
          />
 | 
					          />
 | 
				
			||||||
        </Col>
 | 
					        </Grid.Col>
 | 
				
			||||||
      </Grid>
 | 
					      </Grid>
 | 
				
			||||||
    </>
 | 
					    </>
 | 
				
			||||||
  );
 | 
					  );
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -512,7 +512,7 @@ export function InvenTreeTable<T = any>({
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  // Callback when a row is clicked
 | 
					  // Callback when a row is clicked
 | 
				
			||||||
  const handleRowClick = useCallback(
 | 
					  const handleRowClick = useCallback(
 | 
				
			||||||
    (record: any, index: number, event: any) => {
 | 
					    ({ event, record, index }: { event: any; record: any; index: number }) => {
 | 
				
			||||||
      if (props.onRowClick) {
 | 
					      if (props.onRowClick) {
 | 
				
			||||||
        // If a custom row click handler is provided, use that
 | 
					        // If a custom row click handler is provided, use that
 | 
				
			||||||
        props.onRowClick(record, index, event);
 | 
					        props.onRowClick(record, index, event);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user