diff --git a/generate-html.py b/generate-html.py
index 92724c4..177f36f 100644
--- a/generate-html.py
+++ b/generate-html.py
@@ -45,8 +45,7 @@ def make_html(name,period):
with open('template.html', 'r') as fin:
with open(name+'.html', 'w') as fout:
fout.write(fin.read().format(
- outer_width = display_scale*period+10,
- inner_width = display_scale*period,
+ width = display_scale*period,
start = start,
period = period,
day_start = scale*datetime.fromtimestamp(start/scale).replace(hour=0,minute=0,second=0,microsecond=0).timestamp(),
diff --git a/svg.css b/svg.css
index f500be5..94907d9 100644
--- a/svg.css
+++ b/svg.css
@@ -1,13 +1,11 @@
+.overflow {
+ overflow-x: auto;
+ max-width: 100%;
+}
+
#graph {
background-color: #EEE;
-}
-
-#events {
- transform: scaleY(-1) translateY(-100%);
-}
-
-text {
- dominant-baseline: central;
+ transform: scaleY(-1);
}
#days {
diff --git a/template.html b/template.html
index f2d0368..de1b2d5 100644
--- a/template.html
+++ b/template.html
@@ -11,21 +11,11 @@
last month
last 4 months
-