MSP-3104 update main layout

This commit is contained in:
veselovnk committed 2024-04-11 11:24:55 +03:00
1 parent 903ca9f67e
commit c286448f04
4 files changed
+28 -43

No files matched your search

+3 -1
View File
@@ -1,5 +1,5 @@
import { ProfileOutlined } from '@ant-design/icons'
import { Layout, Menu, Spin } from 'antd'
import { Divider, Layout, Menu, Spin } from 'antd'
import { useEffect, useState } from 'react'
import { Navigate, Outlet, useLocation } from 'react-router-dom'
@@ -26,6 +26,7 @@ import { PermissionKeys } from '@type/roles.type.ts'
import './layout.scss'
const { Content, Sider } = Layout
const LayoutComponent = () => {
@@ -107,6 +108,7 @@ const LayoutComponent = () => {
onCollapse={(value) => setCollapsed(value)}
>
<UserMenu />
<Divider />
<Menu
onOpenChange={(keys) => setOpenKeys(keys)}
openKeys={openKeys}
+5 -3
View File
@@ -64,7 +64,7 @@
}
.ant-layout-sider {
padding-top: 64px;
padding-top: $basic-padding * 2;
}
.ant-menu-title-content {
@@ -80,12 +80,14 @@
}
}
}
.user-menu {
padding-top: 20px;
padding-bottom: 100px;
margin-bottom: 100px;
& ul {
height: 40px;
}
& .ant-menu-submenu-arrow {
display: none !important;
}