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

Collapse fields on vulnerability page when it's too long #2223

Conversation

ZhangChen199102
Copy link
Contributor

@ZhangChen199102 ZhangChen199102 commented May 21, 2024

Issue: #2216

Result:
May-21-2024 15-13-51

Does not render a toggle button if it's a short list:
image

@ZhangChen199102 ZhangChen199102 force-pushed the make-long-field-collapsible-on-vulnerability-page branch from c9d28f6 to 08e367c Compare May 21, 2024 05:20
@@ -38,7 +38,7 @@ <h1 class="title">{{ vulnerability.id }}</h1>
{% if vulnerability.related -%}
<dt>Related</dt>
<dd>
<ul class="aliases">
<ul class="aliases expandible-list">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can make any <ul>...</ul> collapsible on this page by adding expandible-list class.

Copy link
Contributor

@andrewpollock andrewpollock left a comment

Choose a reason for hiding this comment

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

LGTM, let's submit after this week's release to review in staging

@ZhangChen199102 ZhangChen199102 force-pushed the make-long-field-collapsible-on-vulnerability-page branch from 08e367c to 99f27a7 Compare May 29, 2024 05:18
@ZhangChen199102 ZhangChen199102 removed the request for review from oliverchang May 29, 2024 05:31
@ZhangChen199102
Copy link
Contributor Author

Thanks @andrewpollock, can you please help me to merge this PR, I just realised that I lost the write access

@andrewpollock andrewpollock merged commit d9d8215 into google:master May 29, 2024
11 checks passed
@G-Rath G-Rath deleted the make-long-field-collapsible-on-vulnerability-page branch August 20, 2024 19:24
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