fix: improve contact column layout and admin email icon
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import React, { useState } from 'react';
|
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';
|
import ImportExport from './ImportExport';
|
||||||
|
|
||||||
const AdminPanel = ({ token, employees, departments, companies, onRefreshData }) => {
|
const AdminPanel = ({ token, employees, departments, companies, onRefreshData }) => {
|
||||||
@@ -414,10 +414,25 @@ const AdminPanel = ({ token, employees, departments, companies, onRefreshData })
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div style={{ display: 'flex', flexDirection: 'column', gap: '0.15rem', fontSize: '0.8rem' }}>
|
<div style={{ display: 'flex', flexDirection: 'column', gap: '0.25rem' }}>
|
||||||
{emp.phone && <div>📞 {emp.phone}</div>}
|
{emp.phone && (
|
||||||
{emp.internal_phone && <div>📞 Вн.: {emp.internal_phone}</div>}
|
<a href={`tel:${emp.phone}`} className="table-contact-link">
|
||||||
{emp.email && <div>✉️ {emp.email}</div>}
|
<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>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td style={{ textAlign: 'right' }}>
|
<td style={{ textAlign: 'right' }}>
|
||||||
|
|||||||
@@ -437,6 +437,7 @@ button, input, select, textarea {
|
|||||||
gap: 0.25rem;
|
gap: 0.25rem;
|
||||||
color: var(--text-main);
|
color: var(--text-main);
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-contact-link:hover {
|
.table-contact-link:hover {
|
||||||
|
|||||||
Reference in New Issue
Block a user