feat(gantt): implement dynamic sizing on small date ranges #3750

Merged
konrad merged 2 commits from jackymancs4/vikunja-frontend:feature/gantt-dynamic-width into main 2023-10-03 11:30:37 +00:00
Contributor

Hello,
when looking at the Gantt graph, I like to pick only a few weeks ahead.
When doing so, more often than not I find that the bars are too small, and a lot of space is wasted.

This PR implements the following logic:

  • if there is empty space in the gantt container fill it.
  • if the column try to get smaller than 30px, allow the horizontal scroll bar (current behavior)

Before: firefox_gxFpmcjaJR.png
After: firefox_TnolefOfu3.png

Hello, when looking at the Gantt graph, I like to pick only a few weeks ahead. When doing so, more often than not I find that the bars are too small, and a lot of space is wasted. This PR implements the following logic: - if there is empty space in the gantt container fill it. - if the column try to get smaller than 30px, allow the horizontal scroll bar (current behavior) Before: ![firefox_gxFpmcjaJR.png](/attachments/d26d4337-8332-4607-b0ce-65353a1d6ec7) After: ![firefox_TnolefOfu3.png](/attachments/9f2f6335-367a-4439-a020-3ddfaa5f6204)
jackymancs4 added 2 commits 2023-09-29 23:52:20 +00:00
Member

Hi jackymancs4!

Thank you for creating a PR!

I've deployed the changes of this PR on a preview environment under this URL: https://3750-feature-gantt-dynamic-width--vikunja-frontend-preview.netlify.app

You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/.

Have a nice day!

Beep boop, I'm a bot.

Hi jackymancs4! Thank you for creating a PR! I've deployed the changes of this PR on a preview environment under this URL: https://3750-feature-gantt-dynamic-width--vikunja-frontend-preview.netlify.app You can use this url to view the changes live and test them out. You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/. Have a nice day! > Beep boop, I'm a bot.
konrad approved these changes 2023-10-03 11:29:57 +00:00
konrad left a comment
Owner

Awesome, thank you very much!

Awesome, thank you very much!
konrad merged commit a71755e408 into main 2023-10-03 11:30:37 +00:00
konrad deleted branch feature/gantt-dynamic-width 2023-10-03 11:30:38 +00:00
This repo is archived. You cannot comment on pull requests.
No description provided.