Skip to content

Added collapse SERVER section#502

Merged
glensc merged 2 commits intoperftools:0.23.xfrom
Prihod:0.23.x
Feb 21, 2025
Merged

Added collapse SERVER section#502
glensc merged 2 commits intoperftools:0.23.xfrom
Prihod:0.23.x

Conversation

@Prihod
Copy link
Contributor

@Prihod Prihod commented Jan 7, 2025

Problem

When the $_SERVER variable contains many entries, the "SERVER" section on the run view page becomes very large. This makes it difficult to navigate through the page, especially when debugging other parts of the application.

Proposed Solution

Wrap the "SERVER" section in a collapsible <details> HTML element. This reduces clutter and allows users to expand the section only when needed.

Here's the updated code for templates/runs/view.twig:

<li class="nav-header">
    <details>
        <summary>SERVER</summary>
        {{ helpers.property_list('SERVER', result.meta('SERVER')) }}
    </details>
</li>

Benefits

  • Improves user experience.
  • Makes the page easier to navigate.
  • Reduces unnecessary scrolling.

 XHGui - Profile

@glensc glensc merged commit 85d6a51 into perftools:0.23.x Feb 21, 2025
@glensc
Copy link
Contributor

glensc commented Feb 21, 2025

Also, for future contributions, do read:

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