Submitter | Katsunori FUJIWARA |
---|---|
Date | Jan. 20, 2016, 5:44 p.m. |
Message ID | <dfadfd58f3e907a494a2.1453311851@feefifofum> |
Download | mbox | patch |
Permalink | /patch/12843/ |
State | Accepted |
Headers | show |
Comments
On Thu, 2016-01-21 at 02:44 +0900, FUJIWARA Katsunori wrote: > # HG changeset patch > # User FUJIWARA Katsunori <foozy@lares.dti.ne.jp> > # Date 1453311721 -32400 > # Thu Jan 21 02:42:01 2016 +0900 > # Branch stable > # Node ID dfadfd58f3e907a494a2b2d41474164c5be89234 > # Parent d2c5ad3deccb5a504e2553652b66a4110db68afb > templates: use canvaswidth instead of fixed width for canvas (issue2683) Queued for stable, thanks. -- Mathematics is the supreme nostalgia of our time.
Patch
diff --git a/mercurial/templates/gitweb/graph.tmpl b/mercurial/templates/gitweb/graph.tmpl --- a/mercurial/templates/gitweb/graph.tmpl +++ b/mercurial/templates/gitweb/graph.tmpl @@ -41,7 +41,7 @@ graph | <div id="wrapper"> <ul id="nodebgs"></ul> -<canvas id="graph" width="480" height="{canvasheight}"></canvas> +<canvas id="graph" width="{canvaswidth}" height="{canvasheight}"></canvas> <ul id="graphnodes"></ul> </div> diff --git a/mercurial/templates/monoblue/graph.tmpl b/mercurial/templates/monoblue/graph.tmpl --- a/mercurial/templates/monoblue/graph.tmpl +++ b/mercurial/templates/monoblue/graph.tmpl @@ -36,7 +36,7 @@ <div id="noscript">The revision graph only works with JavaScript-enabled browsers.</div> <div id="wrapper"> <ul id="nodebgs"></ul> - <canvas id="graph" width="480" height="{canvasheight}"></canvas> + <canvas id="graph" width="{canvaswidth}" height="{canvasheight}"></canvas> <ul id="graphnodes"></ul> </div> diff --git a/mercurial/templates/paper/graph.tmpl b/mercurial/templates/paper/graph.tmpl --- a/mercurial/templates/paper/graph.tmpl +++ b/mercurial/templates/paper/graph.tmpl @@ -55,7 +55,7 @@ <div id="wrapper"> <ul id="nodebgs" class="stripes2"></ul> -<canvas id="graph" width="480" height="{canvasheight}"></canvas> +<canvas id="graph" width="{canvaswidth}" height="{canvasheight}"></canvas> <ul id="graphnodes"></ul> </div> diff --git a/mercurial/templates/spartan/graph.tmpl b/mercurial/templates/spartan/graph.tmpl --- a/mercurial/templates/spartan/graph.tmpl +++ b/mercurial/templates/spartan/graph.tmpl @@ -32,7 +32,7 @@ navigate: <small class="navigate">{chang <div id="wrapper"> <ul id="nodebgs"></ul> -<canvas id="graph" width="480" height="{canvasheight}"></canvas> +<canvas id="graph" width="{canvaswidth}" height="{canvasheight}"></canvas> <ul id="graphnodes"></ul> </div> diff --git a/tests/test-hgweb-commands.t b/tests/test-hgweb-commands.t --- a/tests/test-hgweb-commands.t +++ b/tests/test-hgweb-commands.t @@ -1751,7 +1751,7 @@ Overviews <div id="wrapper"> <ul id="nodebgs"></ul> - <canvas id="graph" width="480" height="168"></canvas> + <canvas id="graph" width="39" height="168"></canvas> <ul id="graphnodes"></ul> </div> diff --git a/tests/test-hgweb-empty.t b/tests/test-hgweb-empty.t --- a/tests/test-hgweb-empty.t +++ b/tests/test-hgweb-empty.t @@ -294,7 +294,7 @@ Some tests for hgweb in an empty reposit <div id="wrapper"> <ul id="nodebgs" class="stripes2"></ul> - <canvas id="graph" width="480" height="12"></canvas> + <canvas id="graph" width="39" height="12"></canvas> <ul id="graphnodes"></ul> </div>