Skip to content

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
@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.

3 participants