diff --git a/src/Components/Layout/SidebarMenu.jsx b/src/Components/Layout/SidebarMenu.jsx index ca4fc59..f0ba272 100644 --- a/src/Components/Layout/SidebarMenu.jsx +++ b/src/Components/Layout/SidebarMenu.jsx @@ -1,4 +1,7 @@ import React, { useState, useEffect, useRef } from "react"; +import FullLogo from '../../assets/images/logo.svg?react'; +import MiniLogo from '../../assets/images/system_monitor_icon.svg?react'; + import { Drawer, List, @@ -91,15 +94,50 @@ const SidebarMenu = ({ data, onOpenTab, sidebarWidth, startResizing, collapsed, }, }} > - {/* Кнопка сворачивания/разворачивания */} + {/* Верхняя часть с логотипом и кнопкой */} + {/* Логотип - центрируется в доступном пространстве */} + + + + + {/* Мини-логотип (только в свернутом состоянии) */} + {collapsed && ( + + + + )} + + {/* Кнопка сворачивания/разворачивания */} {collapsed ? : } diff --git a/src/assets/images/system_monitor_icon.svg b/src/assets/images/system_monitor_icon.svg new file mode 100644 index 0000000..ba02f29 --- /dev/null +++ b/src/assets/images/system_monitor_icon.svg @@ -0,0 +1,11 @@ + + + + + + + + + + +