2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

01_FHEMWEB: shrink-to-fit only on iOS, increase smallscreen col2 width. (Forum #41467)

git-svn-id: https://svn.fhem.de/fhem/trunk@9317 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-09-27 08:29:16 +00:00
parent a87ef1fe97
commit 98837e9955
2 changed files with 4 additions and 3 deletions

View File

@ -710,8 +710,9 @@ FW_answerCall($)
if($FW_tp || $FW_ss) {
my $icon = $FW_ME."/images/default/fhemicon_ios.png";
if($FW_ss) {
FW_pO '<meta name="viewport" '.
'content="initial-scale=1.0,user-scalable=1,shrink-to-fit=no"/>';
my $stf = $FW_userAgent =~ m/iPad|iPhone|iPod/ ? ",shrink-to-fit=no" :"";
FW_pO "<meta name='viewport' ".
"content='initial-scale=1.0,user-scalable=1$stf'/>";
} elsif($FW_tp) {
FW_pO '<meta name="viewport" content="width=768"/>';
}

View File

@ -14,7 +14,7 @@ textarea { font-family:Arial, sans-serif; font-size:16px;}
.devType { font-size:12px;}
div.col1 { width: 188px; height: 30px; white-space: nowrap; }
div.col2 { width: 108px; height: 30px;
div.col2 { width: 142px; height: 30px;
-webkit-box-pack: center; -moz-box-pack: center; box-pack: center;
white-space: wrap;
font-size:16px;