UX amélioration
This commit is contained in:
@@ -243,7 +243,20 @@ function PlatDetailPanel({ plat, onEdit }) {
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
<div className="dr-detail-title">Détail de la plateforme</div>
|
||||
<div className="dr-detail-title" style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
|
||||
<span>Détail de la plateforme</span>
|
||||
{plat.referentiel_id && (
|
||||
<button
|
||||
type="button"
|
||||
className="chip-cat"
|
||||
onClick={() => navigate(`/referentiel/${plat.referentiel_id}`)}
|
||||
title="Voir le profil de la plateforme"
|
||||
style={{ cursor: 'pointer' }}
|
||||
>
|
||||
Profil
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
<div className="dr-detail-fields">
|
||||
{fields.map(f => (
|
||||
<div className="dr-detail-field" key={f.label}>
|
||||
@@ -253,15 +266,6 @@ function PlatDetailPanel({ plat, onEdit }) {
|
||||
))}
|
||||
</div>
|
||||
<div className="dr-detail-footer">
|
||||
{plat.referentiel_id && (
|
||||
<button
|
||||
className="ghost"
|
||||
onClick={() => navigate(`/referentiel/${plat.referentiel_id}`)}
|
||||
style={{ marginBottom: 8, width: '100%', fontSize: 13 }}
|
||||
>
|
||||
Voir le profil de la plateforme
|
||||
</button>
|
||||
)}
|
||||
<button className="dr-detail-edit-btn" onClick={() => onEdit(plat)}>
|
||||
Modifier la plateforme
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user