From 98837e99553b9e4f8feec2f29411994876b266c0 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 27 Sep 2015 08:29:16 +0000 Subject: [PATCH] 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 --- fhem/FHEM/01_FHEMWEB.pm | 5 +++-- fhem/www/pgm2/smallscreenstyle.css | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/01_FHEMWEB.pm b/fhem/FHEM/01_FHEMWEB.pm index d93f5e72f..3f340a473 100755 --- a/fhem/FHEM/01_FHEMWEB.pm +++ b/fhem/FHEM/01_FHEMWEB.pm @@ -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 ''; + my $stf = $FW_userAgent =~ m/iPad|iPhone|iPod/ ? ",shrink-to-fit=no" :""; + FW_pO ""; } elsif($FW_tp) { FW_pO ''; } diff --git a/fhem/www/pgm2/smallscreenstyle.css b/fhem/www/pgm2/smallscreenstyle.css index 1c640b883..c03c17186 100644 --- a/fhem/www/pgm2/smallscreenstyle.css +++ b/fhem/www/pgm2/smallscreenstyle.css @@ -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;