Skip to content

381 auto height #713

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

Merged
merged 1 commit into from
Feb 11, 2025
Merged

381 auto height #713

merged 1 commit into from
Feb 11, 2025

Conversation

JonasKellerer
Copy link
Collaborator

resolves #381

Summary

In this PR, the height is changed to an optional property with no default. If the value is not provided, either the full table is displayed, or the diagram with a fixed aspect ratio is shown.

Screenshot

Diagram with no height provided. Defaults to fixed aspect ratio.
grafik

Table with no height provided.
grafik

PR Checklist

  • All necessary documentation has been adapted.
  • The implemented feature is covered by an appropriate test.

Copy link

vercel bot commented Jan 31, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dashboard-components ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 11, 2025 8:45am

Copy link
Contributor

github-actions bot commented Jan 31, 2025

This is a preview of the changelog of the next release. If this branch is not up-to-date with the current main branch, the changelog may not be accurate. Rebase your branch on the main branch to get the most accurate changelog.

Note that this might contain changes that are on main, but not yet released.

Changelog:

0.16.0 (2025-02-11)

⚠ BREAKING CHANGES

  • components: If height is not set, use automatic determined height by content instead of default value.

Features

  • components: visualization components: determine height automatically by content height (3e76a19), closes #381

Copy link
Collaborator

@fengelniederhammer fengelniederhammer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good in general 👍

The linter is complaining in a couple of places about missing hook dependencies.

Also the screenshot updates are missing. I'm also not sure whether it's a good idea to remove all the default heights. Do the diagrams still fit into the screen in the snapshot tests?

Copy link
Collaborator

@fengelniederhammer fengelniederhammer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, looks good!

…cally by content height

BREAKING CHANGE: If height is not set, use automatic determined height by content instead of default value.

Resolves #381
@JonasKellerer JonasKellerer merged commit e058cb4 into main Feb 11, 2025
7 checks passed
@JonasKellerer JonasKellerer deleted the 381-auto-height branch February 11, 2025 08:51
fengelniederhammer added a commit that referenced this pull request Feb 11, 2025
fengelniederhammer added a commit that referenced this pull request Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto height
2 participants