2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-09 21:30:54 +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} RenderIcon={renderIcon}
defaultSelectedNodes={selectedCategory ? [selectedCategory] : []} defaultSelectedNodes={selectedCategory ? [selectedCategory] : []}
showEmptyItems={false} showEmptyItems={false}
theme={theme.colorScheme} theme={prefferedColorScheme}
themes={themes} themes={themes}
/> />
</Stack> </Stack>

View File

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

View File

@@ -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>
</> </>
); );

View File

@@ -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);