fix(padres): acomodar saldo dentro de las tarjetas de los hijos sin desbordamientos
This commit is contained in:
@@ -2369,22 +2369,23 @@ body.dark-mode .login-tab-btn.active {
|
|||||||
/* Tarjetas de Hijos Vinculados */
|
/* Tarjetas de Hijos Vinculados */
|
||||||
.parent-children-grid {
|
.parent-children-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
||||||
gap: 10px;
|
gap: 12px;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.parent-child-card {
|
.parent-child-card {
|
||||||
border: 2px solid var(--border, #e2e8f0);
|
border: 2px solid var(--border, #e2e8f0);
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
padding: 12px;
|
padding: 12px 14px;
|
||||||
background: var(--card-bg, #ffffff);
|
background: var(--card-bg, #ffffff);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
flex-direction: column;
|
||||||
gap: 12px;
|
justify-content: space-between;
|
||||||
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.parent-child-card:hover {
|
.parent-child-card:hover {
|
||||||
|
|||||||
+2
-2
@@ -12,7 +12,7 @@
|
|||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||||
<meta name="apple-mobile-web-app-title" content="SiboPay">
|
<meta name="apple-mobile-web-app-title" content="SiboPay">
|
||||||
<meta name="mobile-web-app-capable" content="yes">
|
<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>
|
<style>
|
||||||
/* Transiciones suaves */
|
/* Transiciones suaves */
|
||||||
.fade-enter { animation: fadeIn 0.2s ease-in-out; }
|
.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/sounds.js?v=9.6"></script>
|
||||||
<script src="/js/jsQR.js"></script>
|
<script src="/js/jsQR.js"></script>
|
||||||
<script src="/js/food-icons.js?v=1.0"></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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
+7
-7
@@ -2248,23 +2248,23 @@ function renderParentDashboardView() {
|
|||||||
const initials = getStudentInitials(h.nombre_completo);
|
const initials = getStudentInitials(h.nombre_completo);
|
||||||
return `
|
return `
|
||||||
<div class="parent-child-card ${isSelected ? 'active selected' : ''}" onclick="selectParentChild(${h.id})">
|
<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' : ''}">
|
<div class="child-initials-badge ${isSelected ? 'active' : ''}">
|
||||||
${initials}
|
${initials}
|
||||||
</div>
|
</div>
|
||||||
<div style="min-width: 0; flex: 1;">
|
<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}
|
${h.nombre_completo}
|
||||||
</strong>
|
</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}
|
${h.grado} - Sec. ${h.seccion}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</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>
|
||||||
<div style="display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 6px; margin-top: 4px;">
|
<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.72rem; color: var(--text-muted); font-weight: 700;">Saldo:</span>
|
<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;">
|
<strong style="font-size: 1.05rem; color: #0284c7; font-weight: 900; letter-spacing: -0.3px;">
|
||||||
₡${(h.saldo_colones || 0).toLocaleString('es-CR')}
|
₡${(h.saldo_colones || 0).toLocaleString('es-CR')}
|
||||||
</strong>
|
</strong>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user