aboutsummaryrefslogtreecommitdiffstats
path: root/html
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2015-01-13 00:26:29 +0000
committerAdam Spiers <git@adamspiers.org>2015-01-13 00:26:29 +0000
commitaf46651d6b501c105a44924500a15fae9b293007 (patch)
tree0ab9919b1c3cb31046845a094b61fcd8eb8eb170 /html
parentbfbf0c11e5ad9102d857967d8495aa51c374827c (diff)
downloadgit-deps-af46651d6b501c105a44924500a15fae9b293007.tar.gz
move buttons onto same line to save space
Diffstat (limited to 'html')
-rw-r--r--html/git-deps.html7
-rw-r--r--html/js/git-deps-graph.coffee2
2 files changed, 4 insertions, 5 deletions
diff --git a/html/git-deps.html b/html/git-deps.html
index 62468a4..ce42c97 100644
--- a/html/git-deps.html
+++ b/html/git-deps.html
@@ -30,12 +30,9 @@
<input type="text" name="commitish" size="20"
value="master" autofocus />
<button>Submit</button>
+ <button type="button" onclick="full_screen_click()">Full screen</button>
+ <button type="button" onclick="zoom_to_fit()">Zoom to fit (or double click)</button>
</form>
-
- <p>
- <button onclick="full_screen_click()">Full screen</button>
- <button onclick="zoom_to_fit()">Zoom to fit (or double click)</button>
- </p>
</div>
<div id="svg-container" />
diff --git a/html/js/git-deps-graph.coffee b/html/js/git-deps-graph.coffee
index da85328..5796c11 100644
--- a/html/js/git-deps-graph.coffee
+++ b/html/js/git-deps-graph.coffee
@@ -114,6 +114,7 @@ full_screen_click = ->
fit_svg_to_container()
resize_window()
#zoom_to_fit();
+ return false
zoom_to_fit = ->
b = graph_bounds()
@@ -126,6 +127,7 @@ zoom_to_fit = ->
ty = -b.y * s + (ch / s - h) * s / 2
zoom.translate([tx, ty]).scale s
redraw true
+ return false
window.full_screen_click = full_screen_click
window.zoom_to_fit = zoom_to_fit