feat: layout unificado para tablet segun captura (menu hamburguesa y flujo de 5 bloques), safe-area insets y release v0.7.2-beta
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,24 @@
|
|||||||
package com.oemspot.onevercontrol;
|
package com.oemspot.onevercontrol;
|
||||||
|
|
||||||
|
import android.os.Bundle;
|
||||||
|
import androidx.core.view.ViewCompat;
|
||||||
|
import androidx.core.view.WindowInsetsCompat;
|
||||||
import com.getcapacitor.BridgeActivity;
|
import com.getcapacitor.BridgeActivity;
|
||||||
|
|
||||||
public class MainActivity extends BridgeActivity {}
|
public class MainActivity extends BridgeActivity {
|
||||||
|
@Override
|
||||||
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
// Prevenir que la barra de estado superior y la barra de navegación inferior del sistema tapen la app
|
||||||
|
ViewCompat.setOnApplyWindowInsetsListener(findViewById(android.R.id.content), (view, insets) -> {
|
||||||
|
int top = insets.getInsets(WindowInsetsCompat.Type.systemBars()).top;
|
||||||
|
int bottom = insets.getInsets(WindowInsetsCompat.Type.systemBars()).bottom;
|
||||||
|
int left = insets.getInsets(WindowInsetsCompat.Type.systemBars()).left;
|
||||||
|
int right = insets.getInsets(WindowInsetsCompat.Type.systemBars()).right;
|
||||||
|
|
||||||
|
view.setPadding(left, top, right, bottom);
|
||||||
|
return insets;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
<style name="AppTheme.NoActionBar" parent="Theme.AppCompat.DayNight.NoActionBar">
|
<style name="AppTheme.NoActionBar" parent="Theme.AppCompat.DayNight.NoActionBar">
|
||||||
<item name="windowActionBar">false</item>
|
<item name="windowActionBar">false</item>
|
||||||
<item name="windowNoTitle">true</item>
|
<item name="windowNoTitle">true</item>
|
||||||
|
<item name="android:fitsSystemWindows">true</item>
|
||||||
<item name="android:background">@null</item>
|
<item name="android:background">@null</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,12 @@ html, body {
|
|||||||
touch-action: manipulation;
|
touch-action: manipulation;
|
||||||
overscroll-behavior-y: contain;
|
overscroll-behavior-y: contain;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
|
||||||
|
/* Safe Area Insets para prevenir solapamiento con la barra de estado y de navegación de Android */
|
||||||
|
padding-top: env(safe-area-inset-top, 0px);
|
||||||
|
padding-bottom: env(safe-area-inset-bottom, 0px);
|
||||||
|
padding-left: env(safe-area-inset-left, 0px);
|
||||||
|
padding-right: env(safe-area-inset-right, 0px);
|
||||||
}
|
}
|
||||||
|
|
||||||
#root {
|
#root {
|
||||||
@@ -647,6 +653,75 @@ button:disabled, .btn:disabled, .touch-button:disabled {
|
|||||||
border-bottom: 3px solid #2563EB;
|
border-bottom: 3px solid #2563EB;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.desktop-menu-hamburger-btn {
|
||||||
|
background: var(--input-bg);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: 8px;
|
||||||
|
color: var(--text-1);
|
||||||
|
padding: 6px 12px;
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
transition: all 0.15s ease;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
.desktop-menu-hamburger-btn:hover {
|
||||||
|
background: var(--hover-bg, rgba(255, 255, 255, 0.08));
|
||||||
|
border-color: var(--brand-primary, #3B82F6);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==============================================================================
|
||||||
|
NUEVO FLUJO COCKPIT UNIFICADO (OPTIMIZADO TABLETS Y ESCRITORIO)
|
||||||
|
Orden exacto: DATOS PERSONA -> UBICACION/DESTINO & OBSERVACIONES ->
|
||||||
|
DOCUMENTACION Y POLIZAS -> LECTOR & CAMARAS -> HISTORIAL
|
||||||
|
============================================================================== */
|
||||||
|
.cockpit-flow-container {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 8px 12px;
|
||||||
|
overflow-y: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
background-color: var(--bg-main, #0B1120);
|
||||||
|
}
|
||||||
|
|
||||||
|
.cockpit-dual-row {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1.15fr 1fr;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
@media (max-width: 680px) {
|
||||||
|
.cockpit-dual-row {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.cockpit-bottom-dock {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 8px 14px;
|
||||||
|
padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
|
||||||
|
background-color: var(--bg-surface, #070D1E);
|
||||||
|
border-top: 1px solid var(--border-strong, #1E293B);
|
||||||
|
position: sticky;
|
||||||
|
bottom: 0;
|
||||||
|
z-index: 100;
|
||||||
|
box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes slideInRight {
|
||||||
|
from {
|
||||||
|
transform: translateX(100%);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
transform: translateX(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.desktop-cockpit-grid {
|
.desktop-cockpit-grid {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
display: grid;
|
display: grid;
|
||||||
@@ -959,3 +1034,14 @@ button:disabled, .btn:disabled, .touch-button:disabled {
|
|||||||
border: 1px dashed #94A3B8;
|
border: 1px dashed #94A3B8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[data-theme="light"] .cockpit-flow-container {
|
||||||
|
background-color: #F1F5F9;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="light"] .cockpit-bottom-dock {
|
||||||
|
background-color: #FFFFFF;
|
||||||
|
border-top: 1px solid #CBD5E1;
|
||||||
|
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user