mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
add option to set leftMargin
This commit is contained in:
parent
5515e0762e
commit
a2a53d5d66
@ -46,6 +46,7 @@ export type PanelProps = {
|
|||||||
selectedPanel?: string;
|
selectedPanel?: string;
|
||||||
onPanelChange?: (panel: string) => void;
|
onPanelChange?: (panel: string) => void;
|
||||||
collapsible?: boolean;
|
collapsible?: boolean;
|
||||||
|
ml?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
function BasePanelGroup({
|
function BasePanelGroup({
|
||||||
@ -53,7 +54,8 @@ function BasePanelGroup({
|
|||||||
panels,
|
panels,
|
||||||
onPanelChange,
|
onPanelChange,
|
||||||
selectedPanel,
|
selectedPanel,
|
||||||
collapsible = true
|
collapsible = true,
|
||||||
|
ml = ''
|
||||||
}: Readonly<PanelProps>): ReactNode {
|
}: Readonly<PanelProps>): ReactNode {
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
@ -117,7 +119,7 @@ function BasePanelGroup({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Boundary label={`PanelGroup-${pageKey}`}>
|
<Boundary label={`PanelGroup-${pageKey}`}>
|
||||||
<Paper p="sm" radius="xs" shadow="xs">
|
<Paper p="sm" radius="xs" shadow="xs" ml={ml}>
|
||||||
<Tabs value={panel} orientation="vertical" keepMounted={false}>
|
<Tabs value={panel} orientation="vertical" keepMounted={false}>
|
||||||
<Tabs.List justify="left">
|
<Tabs.List justify="left">
|
||||||
{panels.map(
|
{panels.map(
|
||||||
|
@ -228,6 +228,7 @@ export default function AdminCenter() {
|
|||||||
pageKey="admin-center"
|
pageKey="admin-center"
|
||||||
panels={adminCenterPanels}
|
panels={adminCenterPanels}
|
||||||
collapsible={true}
|
collapsible={true}
|
||||||
|
ml={'sm'}
|
||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
) : (
|
) : (
|
||||||
|
Loading…
Reference in New Issue
Block a user