diff --git a/src/renderer/App.css b/src/renderer/App.css index f888bad..fce6396 100644 --- a/src/renderer/App.css +++ b/src/renderer/App.css @@ -22,6 +22,8 @@ body { display: flex; justify-content: center; align-items: center; + padding: 0; + margin: 0; } p { diff --git a/src/renderer/components/TopBar.tsx b/src/renderer/components/TopBar.tsx index bc361f5..bc912a6 100644 --- a/src/renderer/components/TopBar.tsx +++ b/src/renderer/components/TopBar.tsx @@ -26,12 +26,26 @@ export default function TopBar({ onRegister }: TopBarProps) { const location = useLocation(); const isLoginPage = location.pathname === '/login'; const isLaunchPage = location.pathname.startsWith('/launch'); + const isVersionsExplorerPage = location.pathname.startsWith('/'); const navigate = useNavigate(); const handleLaunchPage = () => { navigate('/'); }; + const getPageTitle = () => { + if (isLoginPage) { + return 'Вход'; + } + if (isLaunchPage) { + return 'Запуск'; + } + if (isVersionsExplorerPage) { + return 'Версии'; + } + return 'Неизвестная страница'; + }; + return ( + {/* Левая часть */} )} + {/* Центр */} + + + {getPageTitle()} + + {/* Правая часть со всеми кнопками */}