fix(ui): eliminate duplicate action buttons between actions card and sticky bottom dock
This commit is contained in:
@@ -848,6 +848,12 @@ button:disabled, .btn:disabled, .touch-button:disabled {
|
|||||||
z-index: 100;
|
z-index: 100;
|
||||||
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.35);
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ==============================================================================
|
/* ==============================================================================
|
||||||
|
|||||||
@@ -1957,48 +1957,50 @@ export const ControlPostView: React.FC = () => {
|
|||||||
<div className="desktop-groupbox" style={{ flex: 1, display: 'flex', flexDirection: 'column', gap: '0.6rem' }}>
|
<div className="desktop-groupbox" style={{ flex: 1, display: 'flex', flexDirection: 'column', gap: '0.6rem' }}>
|
||||||
<span className="desktop-groupbox-title">Acciones (Módulos Virtuales)</span>
|
<span className="desktop-groupbox-title">Acciones (Módulos Virtuales)</span>
|
||||||
|
|
||||||
{/* Botón Principal: Generar INGRESO / SALIDA */}
|
{/* Botón Principal y Cancelar: exclusivos de modo Landscape (en Portrait van en dock fijo) */}
|
||||||
{isModoSalida ? (
|
<div className="desktop-card-action-buttons" style={{ display: 'flex', flexDirection: 'column', gap: '0.5rem' }}>
|
||||||
<button
|
{isModoSalida ? (
|
||||||
type="button"
|
<button
|
||||||
className="desktop-btn-action desktop-btn-red"
|
type="button"
|
||||||
style={{
|
className="desktop-btn-action desktop-btn-red"
|
||||||
padding: '0.7rem 1rem',
|
style={{
|
||||||
fontSize: '1rem',
|
padding: '0.7rem 1rem',
|
||||||
fontWeight: 800,
|
fontSize: '1rem',
|
||||||
minHeight: '44px',
|
fontWeight: 800,
|
||||||
}}
|
minHeight: '44px',
|
||||||
onClick={procesarSalida}
|
}}
|
||||||
disabled={isSubmitting}
|
onClick={procesarSalida}
|
||||||
>
|
disabled={isSubmitting}
|
||||||
<< Generar SALIDA
|
>
|
||||||
</button>
|
<< Generar SALIDA
|
||||||
) : (
|
</button>
|
||||||
<button
|
) : (
|
||||||
type="button"
|
<button
|
||||||
className="desktop-btn-action desktop-btn-green"
|
type="button"
|
||||||
style={{
|
className="desktop-btn-action desktop-btn-green"
|
||||||
padding: '0.7rem 1rem',
|
style={{
|
||||||
fontSize: '1rem',
|
padding: '0.7rem 1rem',
|
||||||
fontWeight: 800,
|
fontSize: '1rem',
|
||||||
minHeight: '44px',
|
fontWeight: 800,
|
||||||
}}
|
minHeight: '44px',
|
||||||
onClick={() => handleRegisterEntry()}
|
}}
|
||||||
disabled={isSubmitting}
|
onClick={() => handleRegisterEntry()}
|
||||||
>
|
disabled={isSubmitting}
|
||||||
>> Generar INGRESO
|
>
|
||||||
</button>
|
>> Generar INGRESO
|
||||||
)}
|
</button>
|
||||||
|
)}
|
||||||
|
|
||||||
{/* Cancelar Operación / Limpiar */}
|
{/* Cancelar Operación / Limpiar */}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="desktop-btn-action desktop-btn-slate"
|
className="desktop-btn-action desktop-btn-slate"
|
||||||
style={{ padding: '0.45rem 1rem', fontWeight: 600, fontSize: '0.85rem' }}
|
style={{ padding: '0.45rem 1rem', fontWeight: 600, fontSize: '0.85rem' }}
|
||||||
onClick={limpiarCampos}
|
onClick={limpiarCampos}
|
||||||
>
|
>
|
||||||
Cancelar Operación / Limpiar
|
Cancelar Operación / Limpiar
|
||||||
</button>
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
{/* Checks Operativos */}
|
{/* Checks Operativos */}
|
||||||
<div style={{ display: 'flex', flexDirection: 'column', gap: '0.4rem', marginTop: '0.2rem' }}>
|
<div style={{ display: 'flex', flexDirection: 'column', gap: '0.4rem', marginTop: '0.2rem' }}>
|
||||||
@@ -2068,8 +2070,8 @@ export const ControlPostView: React.FC = () => {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Botonera de Control de Hardware en Columna de Acciones (Paridad v1.2.3) */}
|
{/* Botonera de Control de Hardware en Columna de Acciones (en Portrait va en dock fijo) */}
|
||||||
<div style={{ marginTop: 'auto', paddingTop: '0.6rem', borderTop: '1px solid rgba(255,255,255,0.08)', display: 'grid', gridTemplateColumns: '1fr 1fr', gap: '0.4rem' }}>
|
<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
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="desktop-btn-action desktop-btn-slate"
|
className="desktop-btn-action desktop-btn-slate"
|
||||||
|
|||||||
Reference in New Issue
Block a user