Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Commit

Permalink
Fix Roboto font, viewport meta tag, rr4j charts (#28)
Browse files Browse the repository at this point in the history
Signed-off-by: Yannick Schaus <[email protected]>
  • Loading branch information
ghys authored Oct 2, 2016
1 parent bfbae48 commit c869fc6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion web/app/widgets/chart/chart.widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
var height = element[0].parentNode.parentNode.parentNode.style.height.replace('px', '');
if (scope.vm.widget.charttype === 'rrd4j') { // why?
scope.vm.width = sprintf("%d", width - 109);
scope.vm.height = sprintf("%d", height - 78);
scope.vm.height = sprintf("%d", height - 91);
} else if (scope.vm.widget.charttype === 'default') {
scope.vm.width = sprintf("%d", width - 20);
scope.vm.height = sprintf("%d", height - 20);
Expand Down
2 changes: 1 addition & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>HABpanel</title>
<meta name="description" content="Dashboard user interface for openHAB" />
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes">

<link rel="stylesheet" href="vendor/vendor.min.css" />
Expand Down
2 changes: 1 addition & 1 deletion web/vendor/vendor.min.css
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions web/vendor/vendor.scss
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
@font-face {
font-family: Roboto;
src: url("fonts/roboto/Roboto-Regular.eot");
src: url("../fonts/roboto/Roboto-Regular.eot");
src: local("Roboto Regular"),
local("Roboto-Regular"),
url("fonts/roboto/Roboto-Regular.eot?#iefix") format("embedded-opentype"),
url("fonts/roboto/Roboto-Regular.woff2") format("woff2"),
url("fonts/roboto/Roboto-Regular.woff") format("woff"),
url("fonts/roboto/Roboto-Regular.ttf") format("truetype"),
url("fonts/roboto/Roboto-Regular.svg#Roboto") format("svg");
url("../fonts/roboto/Roboto-Regular.eot?#iefix") format("embedded-opentype"),
url("../fonts/roboto/Roboto-Regular.woff2") format("woff2"),
url("../fonts/roboto/Roboto-Regular.woff") format("woff"),
url("../fonts/roboto/Roboto-Regular.ttf") format("truetype"),
url("../fonts/roboto/Roboto-Regular.svg#Roboto") format("svg");
font-weight: 400;
font-style: normal;
}
Expand Down

0 comments on commit c869fc6

Please sign in to comment.