diff --git a/frontend/index.html b/frontend/index.html index b49585f..901f243 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -4,10 +4,15 @@ + Неучтенное время
+ diff --git a/frontend/src/App.css b/frontend/src/App.css index f411583..07faf76 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -42,3 +42,11 @@ .read-the-docs { color: #888; } + +/* Мобильная оптимизация */ +@media (max-width: 767.98px) { + .container-fluid { + margin-top: 0 !important; + padding-top: 1rem; + } +} diff --git a/frontend/src/components/AdminPage.jsx b/frontend/src/components/AdminPage.jsx index 396a137..d9c6626 100644 --- a/frontend/src/components/AdminPage.jsx +++ b/frontend/src/components/AdminPage.jsx @@ -2,7 +2,7 @@ import AdminPanel from "./AdminPanel"; const AdminPage = () => { return ( -
+
); diff --git a/frontend/src/components/AdminPanel.jsx b/frontend/src/components/AdminPanel.jsx index 26c684e..9e98d12 100644 --- a/frontend/src/components/AdminPanel.jsx +++ b/frontend/src/components/AdminPanel.jsx @@ -154,14 +154,14 @@ const AdminPanel = () => { }; return ( -
+

Админ панель

-
- +
+ Перейти в дешборд - - +
+ + + +
))} diff --git a/frontend/src/components/Dashboard.jsx b/frontend/src/components/Dashboard.jsx index c77e5e3..4449e2a 100644 --- a/frontend/src/components/Dashboard.jsx +++ b/frontend/src/components/Dashboard.jsx @@ -100,17 +100,17 @@ const Dashboard = () => { } return ( -
-
-

Добро пожаловать, {user.username}!

-
+
+
+

Добро пожаловать, {user.username}!

+
{user.role === "admin" && ( - + Админ панель )} {user.role === "manager" && ( - + Менеджер панель )} @@ -120,7 +120,7 @@ const Dashboard = () => {
-
+
diff --git a/frontend/src/components/ManagerPage.jsx b/frontend/src/components/ManagerPage.jsx index cece1c7..90f23ad 100644 --- a/frontend/src/components/ManagerPage.jsx +++ b/frontend/src/components/ManagerPage.jsx @@ -2,7 +2,7 @@ import ManagerPanel from "./ManagerPanel"; const ManagerPage = () => { return ( -
+
); diff --git a/frontend/src/components/ManagerPanel.jsx b/frontend/src/components/ManagerPanel.jsx index 8d03511..08e2bd4 100644 --- a/frontend/src/components/ManagerPanel.jsx +++ b/frontend/src/components/ManagerPanel.jsx @@ -154,14 +154,14 @@ const ManagerPanel = () => { }; return ( -
+

Менеджер панель

-
- +
+ Перейти в дешборд - - +
+ + + +
))} diff --git a/frontend/src/components/TimeEntriesTable.jsx b/frontend/src/components/TimeEntriesTable.jsx index 2be11cb..4069b05 100644 --- a/frontend/src/components/TimeEntriesTable.jsx +++ b/frontend/src/components/TimeEntriesTable.jsx @@ -18,22 +18,24 @@ const TimeEntriesTable = ({ entries, onDelete, onEdit, isManager = false }) => { {entry.hours} {!isManager && ( - {onEdit && ( - - )} - {onDelete && ( - - )} +
+ {onEdit && ( + + )} + {onDelete && ( + + )} +
)}