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

Prevent "ghost widget" from appearing in workspace widget layout editor #2361

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

AndrewPhilbin
Copy link
Contributor

This addresses #2268. The problem:

If a widget is both "permanent" to a default workspace layout (can't be removed) but also "conditional", in that it is sometimes hidden based on certain conditions, the widget will not appear in a workspace but the layout editor will render an empty resize element that can't be moved or removed:

Screen Shot 2024-06-10 at 9 16 59 PM

In this case (and currently the only case), it is the Tag Diff widget that appears conditionally when a task is cooperative/Tag Fix task:

Screen Shot 2024-06-10 at 9 15 24 PM

The solution:

Since the desired behavior is that certain widgets be permanent (can't be removed from) but only shown under certain conditions, an inline css style rule applied in this circumstance will prevent the empty resize element from appearing in the layout editor view.

…s from rendering a resize element in the workspace layout editor
@CollinBeczak CollinBeczak merged commit c58dce0 into main Jun 11, 2024
4 checks passed
@CollinBeczak CollinBeczak deleted the ghost-widget branch June 11, 2024 16:19
@CollinBeczak CollinBeczak mentioned this pull request Jun 11, 2024
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.

2 participants