Fix Helix-UI instance resource view misformatting on direct page load #2652
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issues
#2651
Resource view for instance does not get formatted correctly when you load it directly via the URL.
https://<helix_ui_url>///instances/<instance_name>/resources
When you access the instance resources page directly via the url or by refreshing the page, the datatable's row widths do not seem to get properly configured and are instead set to 50px. Seems like the UI relies on the loaded content to determine the width of the "datatable-row-detail," and some interaction is causing the width to be determined prior to the content being populated..
Description
Force the datatable rows to use 100% of the parent width
The only negative of this change would be that if the page is stretched over a very long screen, the row would still use the entire width allocated to it and would be stretched as a result - the space between the "Partition" and "CurrentState" columns/values would increase.
Tests
Deployed helix front locally:
yarn build
yarn start
N/A.. No java code changes, only to the styling sheet (.scss)