diff --git a/frontend/index.html b/frontend/index.html
index 4e712f4..2868d69 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -3,7 +3,7 @@
-
+
ITCloud - Облачное хранилище
diff --git a/frontend/src/components/ViewerModal.tsx b/frontend/src/components/ViewerModal.tsx
index 7a74a7a..d697137 100644
--- a/frontend/src/components/ViewerModal.tsx
+++ b/frontend/src/components/ViewerModal.tsx
@@ -167,7 +167,9 @@ export default function ViewerModal({
top: 0,
left: 0,
right: 0,
- p: 2,
+ pt: 'max(env(safe-area-inset-top), 8px)',
+ px: 2,
+ pb: 2,
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
@@ -268,7 +270,9 @@ export default function ViewerModal({
bottom: 0,
left: 0,
right: 0,
- p: 2,
+ px: 2,
+ pt: 2,
+ pb: 'max(env(safe-area-inset-bottom), 8px)',
bgcolor: 'rgba(0,0,0,0.5)',
color: 'white',
display: 'flex',