fix(padres): acomodar saldo dentro de las tarjetas de los hijos sin desbordamientos

This commit is contained in:
unknown
2026-10-06 11:28:07 -06:00
parent 53bff8d618
commit 27a77c9545
3 changed files with 15 additions and 14 deletions
+6 -5
View File
@@ -2369,22 +2369,23 @@ body.dark-mode .login-tab-btn.active {
/* Tarjetas de Hijos Vinculados */
.parent-children-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 10px;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 12px;
margin-bottom: 16px;
}
.parent-child-card {
border: 2px solid var(--border, #e2e8f0);
border-radius: 16px;
padding: 12px;
padding: 12px 14px;
background: var(--card-bg, #ffffff);
cursor: pointer;
transition: all 0.2s ease;
position: relative;
display: flex;
align-items: center;
gap: 12px;
flex-direction: column;
justify-content: space-between;
gap: 10px;
}
.parent-child-card:hover {
+2 -2
View File
@@ -12,7 +12,7 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="SiboPay">
<meta name="mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="/css/styles.css?v=9.6">
<link rel="stylesheet" href="/css/styles.css?v=9.7">
<style>
/* Transiciones suaves */
.fade-enter { animation: fadeIn 0.2s ease-in-out; }
@@ -2289,6 +2289,6 @@
<script src="/js/sounds.js?v=9.6"></script>
<script src="/js/jsQR.js"></script>
<script src="/js/food-icons.js?v=1.0"></script>
<script src="/js/app.js?v=9.6"></script>
<script src="/js/app.js?v=9.7"></script>
</body>
</html>
+7 -7
View File
@@ -2248,23 +2248,23 @@ function renderParentDashboardView() {
const initials = getStudentInitials(h.nombre_completo);
return `
<div class="parent-child-card ${isSelected ? 'active selected' : ''}" onclick="selectParentChild(${h.id})">
<div style="display: flex; align-items: center; gap: 10px; margin-bottom: 8px;">
<div style="display: flex; align-items: center; gap: 10px; min-width: 0; width: 100%;">
<div class="child-initials-badge ${isSelected ? 'active' : ''}">
${initials}
</div>
<div style="min-width: 0; flex: 1;">
<strong style="font-size: 0.9rem; color: var(--text-main); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
<strong style="font-size: 0.92rem; color: var(--text-main); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25;">
${h.nombre_completo}
</strong>
<span style="font-size: 0.72rem; color: var(--text-muted); font-weight: 600;">
<span style="font-size: 0.74rem; color: var(--text-muted); font-weight: 600; display: block; margin-top: 2px;">
${h.grado} - Sec. ${h.seccion}
</span>
</div>
${isBlocked ? '<span style="font-size: 0.65rem; background: #fee2e2; color: #dc2626; padding: 2px 6px; border-radius: 4px; font-weight: 800;">BLOQUEADO</span>' : ''}
${isBlocked ? '<span style="font-size: 0.65rem; background: #fee2e2; color: #dc2626; padding: 2px 6px; border-radius: 4px; font-weight: 800; flex-shrink: 0;">BLOQUEADO</span>' : ''}
</div>
<div style="display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 6px; margin-top: 4px;">
<span style="font-size: 0.72rem; color: var(--text-muted); font-weight: 700;">Saldo:</span>
<strong style="font-size: 1.05rem; color: #0284c7; font-weight: 900;">
<div style="display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 2px; width: 100%;">
<span style="font-size: 0.74rem; color: var(--text-muted); font-weight: 700;">Saldo:</span>
<strong style="font-size: 1.05rem; color: #0284c7; font-weight: 900; letter-spacing: -0.3px;">
₡${(h.saldo_colones || 0).toLocaleString('es-CR')}
</strong>
</div>