From 9d83a74769c0671168b75031c5f25270f4f33bd3 Mon Sep 17 00:00:00 2001 From: fabritsky Date: Tue, 26 May 2026 09:19:36 +0700 Subject: [PATCH] fix: improve contact column layout and admin email icon --- frontend/src/components/AdminPanel.jsx | 25 ++++++++++++++++++++----- frontend/src/index.css | 1 + 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/AdminPanel.jsx b/frontend/src/components/AdminPanel.jsx index 813cebf..2d4c99a 100644 --- a/frontend/src/components/AdminPanel.jsx +++ b/frontend/src/components/AdminPanel.jsx @@ -1,5 +1,5 @@ import React, { useState } from 'react'; -import { PlusIcon, EditIcon, DeleteIcon, CloseIcon } from '../utils/svgs'; +import { PlusIcon, EditIcon, DeleteIcon, CloseIcon, PhoneIcon, EmailIcon } from '../utils/svgs'; import ImportExport from './ImportExport'; const AdminPanel = ({ token, employees, departments, companies, onRefreshData }) => { @@ -414,10 +414,25 @@ const AdminPanel = ({ token, employees, departments, companies, onRefreshData }) -
- {emp.phone &&
📞 {emp.phone}
} - {emp.internal_phone &&
📞 Вн.: {emp.internal_phone}
} - {emp.email &&
✉️ {emp.email}
} +
+ {emp.phone && ( + + + {emp.phone} + + )} + {emp.internal_phone && ( +
+ + Вн.: {emp.internal_phone} +
+ )} + {emp.email && ( + + + {emp.email} + + )}
diff --git a/frontend/src/index.css b/frontend/src/index.css index 8c7091a..c723594 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -437,6 +437,7 @@ button, input, select, textarea { gap: 0.25rem; color: var(--text-main); font-size: 0.8rem; + white-space: nowrap; } .table-contact-link:hover {