@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

When drawing a very wide graph line diagram, smush it together a bit

Summary: Depends on D20345. Use a narrower layout for very large graphs to save some space.

Test Plan:
Before:

{F6320215}

After:

{F6320216}

This does not affect smaller graphs.

Reviewers: amckinley

Reviewed By: amckinley

Differential Revision: https://secure.phabricator.com/D20346

+17 -9
+8 -8
resources/celerity/map.php
··· 14 14 'differential.pkg.css' => '8d8360fb', 15 15 'differential.pkg.js' => '67e02996', 16 16 'diffusion.pkg.css' => '42c75c37', 17 - 'diffusion.pkg.js' => '91192d85', 17 + 'diffusion.pkg.js' => 'a98c0bf7', 18 18 'maniphest.pkg.css' => '35995d6d', 19 19 'maniphest.pkg.js' => 'c9308721', 20 20 'rsrc/audio/basic/alert.mp3' => '17889334', ··· 384 384 'rsrc/js/application/diffusion/DiffusionLocateFileSource.js' => '94243d89', 385 385 'rsrc/js/application/diffusion/behavior-audit-preview.js' => 'b7b73831', 386 386 'rsrc/js/application/diffusion/behavior-commit-branches.js' => '4b671572', 387 - 'rsrc/js/application/diffusion/behavior-commit-graph.js' => '1c88f154', 387 + 'rsrc/js/application/diffusion/behavior-commit-graph.js' => 'ef836bf2', 388 388 'rsrc/js/application/diffusion/behavior-locate-file.js' => '87428eb2', 389 389 'rsrc/js/application/diffusion/behavior-pull-lastmodified.js' => 'c715c123', 390 390 'rsrc/js/application/doorkeeper/behavior-doorkeeper-tag.js' => '6a85bc5a', ··· 606 606 'javelin-behavior-differential-diff-radios' => '925fe8cd', 607 607 'javelin-behavior-differential-populate' => 'dfa1d313', 608 608 'javelin-behavior-diffusion-commit-branches' => '4b671572', 609 - 'javelin-behavior-diffusion-commit-graph' => '1c88f154', 609 + 'javelin-behavior-diffusion-commit-graph' => 'ef836bf2', 610 610 'javelin-behavior-diffusion-locate-file' => '87428eb2', 611 611 'javelin-behavior-diffusion-pull-lastmodified' => 'c715c123', 612 612 'javelin-behavior-document-engine' => '243d6c22', ··· 1032 1032 '1c850a26' => array( 1033 1033 'javelin-install', 1034 1034 'javelin-util', 1035 - ), 1036 - '1c88f154' => array( 1037 - 'javelin-behavior', 1038 - 'javelin-dom', 1039 - 'javelin-stratcom', 1040 1035 ), 1041 1036 '1cab0e9a' => array( 1042 1037 'javelin-behavior', ··· 2122 2117 'ee82cedb' => array( 2123 2118 'javelin-behavior', 2124 2119 'phabricator-keyboard-shortcut', 2120 + 'javelin-stratcom', 2121 + ), 2122 + 'ef836bf2' => array( 2123 + 'javelin-behavior', 2124 + 'javelin-dom', 2125 2125 'javelin-stratcom', 2126 2126 ), 2127 2127 'f166c949' => array(
+9 -1
webroot/rsrc/js/application/diffusion/behavior-commit-graph.js
··· 44 44 cxt.stroke(); 45 45 } 46 46 47 + // If the graph is going to be wide, squish it a bit so it doesn't take up 48 + // quite as much space. 49 + var default_width; 50 + if (config.count >= 8) { 51 + default_width = 6; 52 + } else { 53 + default_width = 12; 54 + } 47 55 48 56 for (var ii = 0; ii < nodes.length; ii++) { 49 57 var data = JX.Stratcom.getData(nodes[ii]); 50 58 51 - var cell = 12; // Width of each thread. 59 + var cell = default_width; 52 60 var xpos = function(col) { 53 61 return (col * cell) + (cell / 2); 54 62 };