fix: tags de consentimiento en examenes ya no desbordan horizontalmente
- item-row con flex-wrap para que los tags pasen a la siguiente línea - consent-tag con word-break y max-width para textos largos - Botones de acción agrupados en .item-actions con margin-left:auto Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
6b6389c583
commit
1c921fc7fa
@@ -112,9 +112,10 @@ $tab = $_GET['tab'] ?? 'lugares';
|
||||
.nav-tabs .nav-link.active { color:#1565c0; border-bottom:2px solid #1565c0; }
|
||||
.tab-card { background:#fff; border:1px solid #e2e8f0; border-top:none; border-radius:0 0 10px 10px; padding:24px; }
|
||||
.section-title { font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:#64748b; margin:0 0 14px; }
|
||||
.item-row { display:flex; align-items:center; gap:8px; padding:10px 0; border-bottom:1px solid #f1f5f9; }
|
||||
.item-row { display:flex; align-items:flex-start; flex-wrap:wrap; gap:6px 8px; padding:10px 0; border-bottom:1px solid #f1f5f9; }
|
||||
.item-row:last-child { border-bottom:none; }
|
||||
.item-row .item-name { flex:1; font-weight:500; color:#1e293b; }
|
||||
.item-row .item-name { flex:1; min-width:200px; font-weight:500; color:#1e293b; }
|
||||
.item-row .item-actions { display:flex; gap:4px; margin-left:auto; flex-shrink:0; }
|
||||
.btn-icon { border:none; background:none; color:#94a3b8; cursor:pointer; padding:4px 6px; border-radius:6px; }
|
||||
.btn-icon:hover { background:#f1f5f9; color:#475569; }
|
||||
.badge-color { width:14px; height:14px; border-radius:50%; display:inline-block; flex-shrink:0; }
|
||||
@@ -125,7 +126,7 @@ $tab = $_GET['tab'] ?? 'lugares';
|
||||
.session-badge { font-size:.75rem; padding:2px 8px; border-radius:99px; font-weight:600; }
|
||||
.session-open { background:#dcfce7; color:#15803d; }
|
||||
.session-closed{ background:#f1f5f9; color:#64748b; }
|
||||
.consent-tag { font-size:.7rem; background:#ede9fe; color:#5b21b6; border-radius:99px; padding:1px 7px; white-space:nowrap; }
|
||||
.consent-tag { font-size:.7rem; background:#ede9fe; color:#5b21b6; border-radius:99px; padding:2px 8px; white-space:normal; word-break:break-word; max-width:260px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -442,12 +443,14 @@ $tab = $_GET['tab'] ?? 'lugares';
|
||||
?>
|
||||
<span class="consent-tag"><i class="fas fa-file-signature me-1"></i><?= htmlspecialchars($fNombre ?: 'Form #'.$fid) ?></span>
|
||||
<?php endforeach; ?>
|
||||
<button class="btn-icon text-primary" onclick="editarExamen(<?= $et['id'] ?>)" title="Editar">
|
||||
<i class="fas fa-pencil-alt"></i>
|
||||
</button>
|
||||
<button class="btn-icon text-danger" onclick="eliminarExamen(<?= $et['id'] ?>, '<?= addslashes($et['nombre']) ?>')" title="Eliminar">
|
||||
<i class="fas fa-trash"></i>
|
||||
</button>
|
||||
<span class="item-actions">
|
||||
<button class="btn-icon text-primary" onclick="editarExamen(<?= $et['id'] ?>)" title="Editar">
|
||||
<i class="fas fa-pencil-alt"></i>
|
||||
</button>
|
||||
<button class="btn-icon text-danger" onclick="eliminarExamen(<?= $et['id'] ?>, '<?= addslashes($et['nombre']) ?>')" title="Eliminar">
|
||||
<i class="fas fa-trash"></i>
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user