diff --git a/app/(protected)/_layout.tsx b/app/(protected)/_layout.tsx
index c185500..42115c5 100644
--- a/app/(protected)/_layout.tsx
+++ b/app/(protected)/_layout.tsx
@@ -2,10 +2,12 @@ import { Redirect, Tabs } from 'expo-router';
import { Home, Clock, Zap, CalendarIcon, Building } from 'lucide-react-native';
import { useContext } from 'react';
import { AuthContext } from '@/utils/authContext';
+import { useSafeAreaInsets } from 'react-native-safe-area-context';
export default function ProtectedLayout() {
const authState = useContext(AuthContext);
-
+ const insets = useSafeAreaInsets();
+
if (!authState.isReady) {
return null;
}
@@ -23,7 +25,7 @@ export default function ProtectedLayout() {
borderTopWidth: 1,
borderTopColor: '#f3f4f6',
height: 90,
- paddingBottom: 30,
+ paddingBottom: insets.bottom,
paddingTop: 10,
paddingHorizontal: 10,
},
diff --git a/app/(protected)/automation/index.tsx b/app/(protected)/automation/index.tsx
index f2045a3..86a30a0 100644
--- a/app/(protected)/automation/index.tsx
+++ b/app/(protected)/automation/index.tsx
@@ -158,7 +158,7 @@ export default function AutomationScreen() {
areaData: JSON.stringify(area),
}
})}
- className="bg-white rounded-3xl p-5 shadow-sm border border-gray-100 active:scale-[0.98] w-[48%] mb-4 aspect-square"
+ className="bg-white aspect-square rounded-3xl p-5 shadow-sm border border-gray-100 active:scale-[0.98] w-[48%] mb-4"
>
diff --git a/app/login.tsx b/app/login.tsx
index 2cb5a08..da19543 100644
--- a/app/login.tsx
+++ b/app/login.tsx
@@ -120,9 +120,9 @@ export default function LoginScreen() {
{/* TODO: Implement password recovery functionality */}
-
+ {/*
Password dimenticata?
-
+ */}
{/* Login Button */}
diff --git a/components/DeviceCard.tsx b/components/DeviceCard.tsx
index 49d5fff..bd20096 100644
--- a/components/DeviceCard.tsx
+++ b/components/DeviceCard.tsx
@@ -55,7 +55,7 @@ const DeviceCard = ({ device, onToggle }: { device: HaEntity; onToggle: (entityI
return (
diff --git a/components/QrScanModal.tsx b/components/QrScanModal.tsx
index 28a06b5..2175720 100644
--- a/components/QrScanModal.tsx
+++ b/components/QrScanModal.tsx
@@ -62,35 +62,31 @@ export default function QrScanModal({ visible, onClose, onScan }: QrScanModalPro
/>
{/* Dark Overlay with Transparent "Hole" (Visually Simulated with Borders or Opacity) */}
-
+
{/* Header Overlay */}
-
+
Scansiona QR Code
Inquadra il codice nel riquadro
{/* Central Area (Transparent for the camera) */}
-
-
-
+
+
{/* Decorative Corners */}
-
+
{/* Animated Scan Line or Icon */}
{!scanned && }
-
{/* Footer Overlay */}
-
-
+
+
Chiudi