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

Enhancement: Collapse "SERVER" section in templates/runs/view.twig #501

Open
Prihod opened this issue Jan 3, 2025 · 1 comment
Open

Comments

@Prihod
Copy link

Prihod commented Jan 3, 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>
    <details>
        <summary style="margin-top: 9px; color: #999999;">
            <span class="nav-header" style="display: inline-block;">SERVER</span>
        </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

Additional Context

Tested locally, and the proposed change works as intended.

The added inline styles are a temporary solution. Ideally, these styles should be moved into the main stylesheet, which ensures a consistent and maintainable styling approach across the project.

@glensc
Copy link
Contributor

glensc commented Jan 4, 2025

Send pull request

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

No branches or pull requests

2 participants