fix: improve contact column layout and admin email icon

This commit is contained in:
2026-05-26 09:19:36 +07:00
parent fc4a283c0a
commit 9d83a74769
2 changed files with 21 additions and 5 deletions
+20 -5
View File
@@ -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 })
</div>
</td>
<td>
<div style={{ display: 'flex', flexDirection: 'column', gap: '0.15rem', fontSize: '0.8rem' }}>
{emp.phone && <div>📞 {emp.phone}</div>}
{emp.internal_phone && <div>📞 Вн.: {emp.internal_phone}</div>}
{emp.email && <div> {emp.email}</div>}
<div style={{ display: 'flex', flexDirection: 'column', gap: '0.25rem' }}>
{emp.phone && (
<a href={`tel:${emp.phone}`} className="table-contact-link">
<PhoneIcon style={{ width: '0.85rem', height: '0.85rem' }} />
<span>{emp.phone}</span>
</a>
)}
{emp.internal_phone && (
<div style={{ fontSize: '0.8rem', color: 'var(--text-muted)', display: 'flex', alignItems: 'center', gap: '0.25rem' }}>
<PhoneIcon style={{ width: '0.85rem', height: '0.85rem' }} />
<span>Вн.: {emp.internal_phone}</span>
</div>
)}
{emp.email && (
<a href={`mailto:${emp.email}`} className="table-contact-link">
<EmailIcon style={{ width: '0.85rem', height: '0.85rem' }} />
<span>{emp.email}</span>
</a>
)}
</div>
</td>
<td style={{ textAlign: 'right' }}>
+1
View File
@@ -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 {