fix(ui): Improved formatting for exploits and vulnerabilities in asset scan details #891
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.
Description
Fix for #812 and #813
Change the labels for csv input types. Add component that support showing X number of lines of text with ellipses (
...
sign) at the end. Use this component to display the content of the csv. Add a show more arrow button that is only visible if there are more than X lines of text and you can also shrink it after you expanded it. (In this case X=5 but it can easily be changed if needed.)Update the duration calculation to show the text
less than 1 second
if the start time equals with the end time.Screenshot:
![image](https://private-user-images.githubusercontent.com/19503754/279982240-931f77b4-c611-4b45-878c-71f9a65fafb4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MjgwNTQsIm5iZiI6MTcyNDUyNzc1NCwicGF0aCI6Ii8xOTUwMzc1NC8yNzk5ODIyNDAtOTMxZjc3YjQtYzYxMS00YjQ1LTg3OGMtNzFmOWE2NWZhZmI0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDE5MjkxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY2MzQ5MWUxNmNjZWU4NjBiZDNkNDA1NzI0NDU1ODRmOTVjOWZlMjA2YzI5Mjg1NTFmMTExZWY4OWJkZTA2MDAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.b6UjIEX9Hanq-M3Fv5IFuL3t0g2xzAtjtnSC0gdGFUQ)
Type of Change
[x] Bug Fix
[ ] New Feature
[ ] Breaking Change
[ ] Refactor
[ ] Documentation
[ ] Other (please describe)
Checklist