fix(ui): eliminate duplicate action buttons between actions card and sticky bottom dock

This commit is contained in:
Carlos Tello
2026-11-03 23:56:21 -03:00
parent 412e5cf50d
commit 26328b1057
2 changed files with 51 additions and 43 deletions
+6
View File
@@ -848,6 +848,12 @@ button:disabled, .btn:disabled, .touch-button:disabled {
z-index: 100;
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.35);
}
/* Evitar repetición de botones en la tarjeta de acciones cuando el dock fijo está activo */
.desktop-card-action-buttons,
.desktop-card-hardware-buttons {
display: none !important;
}
}
/* ==============================================================================
+45 -43
View File
@@ -1957,48 +1957,50 @@ export const ControlPostView: React.FC = () => {
<div className="desktop-groupbox" style={{ flex: 1, display: 'flex', flexDirection: 'column', gap: '0.6rem' }}>
<span className="desktop-groupbox-title">Acciones (Módulos Virtuales)</span>
{/* Botón Principal: Generar INGRESO / SALIDA */}
{isModoSalida ? (
<button
type="button"
className="desktop-btn-action desktop-btn-red"
style={{
padding: '0.7rem 1rem',
fontSize: '1rem',
fontWeight: 800,
minHeight: '44px',
}}
onClick={procesarSalida}
disabled={isSubmitting}
>
&lt;&lt; Generar SALIDA
</button>
) : (
<button
type="button"
className="desktop-btn-action desktop-btn-green"
style={{
padding: '0.7rem 1rem',
fontSize: '1rem',
fontWeight: 800,
minHeight: '44px',
}}
onClick={() => handleRegisterEntry()}
disabled={isSubmitting}
>
&gt;&gt; Generar INGRESO
</button>
)}
{/* Botón Principal y Cancelar: exclusivos de modo Landscape (en Portrait van en dock fijo) */}
<div className="desktop-card-action-buttons" style={{ display: 'flex', flexDirection: 'column', gap: '0.5rem' }}>
{isModoSalida ? (
<button
type="button"
className="desktop-btn-action desktop-btn-red"
style={{
padding: '0.7rem 1rem',
fontSize: '1rem',
fontWeight: 800,
minHeight: '44px',
}}
onClick={procesarSalida}
disabled={isSubmitting}
>
&lt;&lt; Generar SALIDA
</button>
) : (
<button
type="button"
className="desktop-btn-action desktop-btn-green"
style={{
padding: '0.7rem 1rem',
fontSize: '1rem',
fontWeight: 800,
minHeight: '44px',
}}
onClick={() => handleRegisterEntry()}
disabled={isSubmitting}
>
&gt;&gt; Generar INGRESO
</button>
)}
{/* Cancelar Operación / Limpiar */}
<button
type="button"
className="desktop-btn-action desktop-btn-slate"
style={{ padding: '0.45rem 1rem', fontWeight: 600, fontSize: '0.85rem' }}
onClick={limpiarCampos}
>
Cancelar Operación / Limpiar
</button>
{/* Cancelar Operación / Limpiar */}
<button
type="button"
className="desktop-btn-action desktop-btn-slate"
style={{ padding: '0.45rem 1rem', fontWeight: 600, fontSize: '0.85rem' }}
onClick={limpiarCampos}
>
Cancelar Operación / Limpiar
</button>
</div>
{/* Checks Operativos */}
<div style={{ display: 'flex', flexDirection: 'column', gap: '0.4rem', marginTop: '0.2rem' }}>
@@ -2068,8 +2070,8 @@ export const ControlPostView: React.FC = () => {
)}
</div>
{/* Botonera de Control de Hardware en Columna de Acciones (Paridad v1.2.3) */}
<div style={{ marginTop: 'auto', paddingTop: '0.6rem', borderTop: '1px solid rgba(255,255,255,0.08)', display: 'grid', gridTemplateColumns: '1fr 1fr', gap: '0.4rem' }}>
{/* Botonera de Control de Hardware en Columna de Acciones (en Portrait va en dock fijo) */}
<div className="desktop-card-hardware-buttons" style={{ marginTop: 'auto', paddingTop: '0.6rem', borderTop: '1px solid rgba(255,255,255,0.08)', display: 'grid', gridTemplateColumns: '1fr 1fr', gap: '0.4rem' }}>
<button
type="button"
className="desktop-btn-action desktop-btn-slate"