Skip to content

Commit

Permalink
fix: fix some layout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Mar 9, 2021
1 parent 2d43890 commit 3824f25
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web/public/js/graph-config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
let GraphConfig = {
screen_width: window.innerWidth / 2,
screen_width: window.innerWidth,
width: 1200,
height: 900,
}
2 changes: 1 addition & 1 deletion web/public/js/graph/git/commit-calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function renderCommitCalendar(data, elementId = "#commit-calendar") {
let weekday;

let cellSize = 10;
let width = GraphConfig.screen_width;
let width = GraphConfig.width;
let height = cellSize * (weekday === "weekday" ? 7 : 9)
let timeWeek = weekday === "sunday" ? d3.utcSunday : d3.utcMonday;
let countDay = weekday === "sunday" ? i => i : i => (i + 6) % 7;
Expand Down
2 changes: 1 addition & 1 deletion web/public/js/graph/git/file-explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function renderCodeExplorer(data, elementId) {
d3.select("#file-explorer-legend").remove();
legend({
color,
title: "Daily commits",
title: "Commits",
ticks: 10,
tickFormat: function (d) {
return d;
Expand Down

0 comments on commit 3824f25

Please sign in to comment.