GothenburgBitFactory / timewarrior

Timewarrior - Commandline Time Tracking and Reporting
https://timewarrior.net
MIT License
1.26k stars 95 forks source link

tags misplaced when cell width #558

Closed champignoom closed 1 year ago

champignoom commented 1 year ago

This is what timew day looks like with an empty timewarrior.cfg: image

But after adding the followings to timewarrior.cfg:

define reports:
  day:
    cell = 7

It becomes like this: image

where both tags are shifted rightwards.

champignoom commented 1 year ago

version 1.5.0

lauft commented 1 year ago

@champignoom What are the start and end time of both intervals?

champignoom commented 1 year ago

@lauft it's 10:10:00-16:44:11 and 17:42:12-18:00:00 respectively

lauft commented 1 year ago

@champignoom The quick answer to your issue is given by timew help chart in the CONFIGURATION section. Here it says for reports.<type>.cell:

... Suitable values are the divisors of 60 ...

As 7 does not fit that rule, weird behavior is somewhat expected... 😅 So, pick 6 instead.

I might try to figure out, what exactly is going haywire here, but I guess this is rather another point on the TODO list for config validation. 🤔

champignoom commented 1 year ago

Thanks, 10 fits my screen width and behaves well.