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

Hide resizable height prop controls #1641

Merged
merged 4 commits into from
Feb 21, 2023
Merged

Conversation

apedroferreira
Copy link
Member

@apedroferreira apedroferreira commented Feb 8, 2023

Fixes #1277
Fixes #1614 too? (and also hides bindings button for "columns" props)

Very simple solution, but hiding the control in the properties panel for this type of prop seems to completely fix the issues?

Preview: https://toolpad-pr-1641.onrender.com/

@apedroferreira apedroferreira added the bug 🐛 Something doesn't work label Feb 8, 2023
@apedroferreira apedroferreira self-assigned this Feb 8, 2023
@oliviertassinari oliviertassinari requested a deployment to fix-datagrid-height - toolpad-db PR #1641 February 8, 2023 14:38 — with Render Abandoned
@@ -176,8 +176,6 @@ export default function NodeHud({

const hintPosition = rect.y > HUD_HEIGHT ? HINT_POSITION_TOP : HINT_POSITION_BOTTOM;

const iconSx = { opacity: 0.7 };
Copy link
Member Author

Choose a reason for hiding this comment

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

Unrelated, but the opacity i had added here made the icons seem disabled.

@oliviertassinari oliviertassinari temporarily deployed to fix-datagrid-height - toolpad PR #1641 February 8, 2023 14:39 — with Render Destroyed
@oliviertassinari oliviertassinari temporarily deployed to fix-datagrid-height - toolpad PR #1641 February 8, 2023 14:41 — with Render Destroyed
@apedroferreira apedroferreira marked this pull request as ready for review February 8, 2023 14:42
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Feb 17, 2023
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Feb 21, 2023
@oliviertassinari oliviertassinari requested a deployment to fix-datagrid-height - toolpad-db PR #1641 February 21, 2023 16:31 — with Render Abandoned
@apedroferreira
Copy link
Member Author

@Janpot Layout props weren't bindable already so I think this should be a good fix for these issues?

@oliviertassinari oliviertassinari temporarily deployed to fix-datagrid-height - toolpad PR #1641 February 21, 2023 16:35 — with Render Destroyed
Copy link
Member

@Janpot Janpot left a comment

Choose a reason for hiding this comment

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

👍 yep, lgtm, let's ship

@apedroferreira apedroferreira merged commit ba6af80 into master Feb 21, 2023
@apedroferreira apedroferreira deleted the fix-datagrid-height branch February 21, 2023 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disallow binding to properties that can be manipulated in the canvas DataGrid height UX issues
3 participants