Просмотр исходного кода

Added bottom nav padding for iOS #4740 (#4741)

* Added bottom nav padding for iOS #4740

* Updated RTL css #4740

Co-authored-by: maTh <math-home@web.de>
acbgbca 3 лет назад
Родитель
Сommit
edbf0fe7db
3 измененных файлов с 3 добавлено и 1 удалено
  1. 1 1
      app/layout/layout.phtml
  2. 1 0
      p/themes/base-theme/frss.css
  3. 1 0
      p/themes/base-theme/frss.rtl.css

+ 1 - 1
app/layout/layout.phtml

@@ -10,7 +10,7 @@ if (_t('gen.dir') === 'rtl') {
 ?>>
 	<head>
 		<meta charset="UTF-8" />
-		<meta name="viewport" content="initial-scale=1.0" />
+		<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
 		<?= FreshRSS_View::headStyle() ?>
 		<script id="jsonVars" type="application/json">
 <?php $this->renderHelper('javascript_vars'); ?>

+ 1 - 0
p/themes/base-theme/frss.css

@@ -1458,6 +1458,7 @@ a.website:hover .favicon {
 	bottom: 0; left: 0;
 	width: 300px;
 	table-layout: fixed;
+	padding-bottom: env(safe-area-inset-bottom);
 }
 
 #nav_entries .item {

+ 1 - 0
p/themes/base-theme/frss.rtl.css

@@ -1458,6 +1458,7 @@ a.website:hover .favicon {
 	bottom: 0; right: 0;
 	width: 300px;
 	table-layout: fixed;
+	padding-bottom: env(safe-area-inset-bottom);
 }
 
 #nav_entries .item {