Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][IMP] web_timeline: Align to top instead of bottom #2790

Merged
merged 1 commit into from
May 21, 2024

Conversation

houzefa-abba
Copy link
Member

This avoids somewhat ugly very large "Unassigned" first row.

See doc on https://visjs.github.io/vis-timeline/docs/timeline/ > "orientation" setting:

Orientation of the timeline items: 'top' or 'bottom' (default). Determines whether items are aligned to the top or bottom of the Timeline.

Since our view always covers 100% height, the "bottom" default setting was producing that large first row.

This could be a per-view setting; I didn't add a setting for now as I believe this top-aligned behavior is always desirable (as far as I could see when showing this around, at least). I can add a setting if you feel it would be needed.

Before

Screenshot at 2024-04-03 18-37-00

After

Screenshot at 2024-04-03 18-36-42

@OCA-git-bot
Copy link
Contributor

Hi @tarteo,
some modules you are maintaining are being modified, check this out!

@pedrobaeza pedrobaeza added this to the 16.0 milestone Apr 3, 2024
This avoids somewhat ugly very large "Unassigned" first row.
@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@pedrobaeza
Copy link
Member

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 16.0-ocabot-merge-pr-2790-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 979536b into OCA:16.0 May 21, 2024
5 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 6354d68. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants