From bbd3388d4d8706df1c1b2b0e4b56002813220d81 Mon Sep 17 00:00:00 2001 From: Curtis Conard Date: Mon, 16 Dec 2024 04:55:45 -0500 Subject: [PATCH] add hours to day zoom --- CHANGELOG.md | 6 ++++++ js/gantt-helper.js | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00c2dd5..bfa6665 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [1.2.0] - Unreleased + +### Added + +- Added hours to Days zoom level + ## [1.1.0] - 2024-03-15 ### Added diff --git a/js/gantt-helper.js b/js/gantt-helper.js index dfe99af..7fab57d 100644 --- a/js/gantt-helper.js +++ b/js/gantt-helper.js @@ -184,9 +184,10 @@ const GlpiGantt = (function() { { name: "day", scale_height: 27, - min_column_width: 80, + min_column_width: 30, scales: [ - { unit: "day", step: 1, format: "%d %M" } + { unit: "day", step: 1, format: "%d %M" }, + { unit: "hour", step: 2, format: "%H" } ] }, {