Hide sidebar if empty / unused?

Created on 6 August 2024, 4 months ago
Updated 7 August 2024, 4 months ago

Problem/Motivation

Just saw that the sidebar also appears empty in some entity types, for example Redirect entities: /admin/config/search/redirect/add

Is it possible to detect code-wise if the sidebar is empty and hide or even remove it it in that case?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Anybody
  • 🇩🇪Germany Hydra

    Yeah I don't like that as well, but it's part of the template provided bei Gin and I don't want to replace that. It should be Gins responsibility to hide that if it's empty. It is not just the sidebar, the toggle button as well.
    We could of course not use the template if we don't have data for the sidebar, but this would also affect the submit button to appear under the form again.

    I am happy to commit a solution if anyone has an idea which is not to inversive on the Gin template itself, since I don't want to maintain that in this module here (if Sasha makes updates on the template) - this would end in a mess.

  • 🇩🇪Germany Anybody Porta Westfalica

    Yeah I agree this should be fixed in Gin, like the whole functionality. Detecting the entity forms should also be dynamic, if technically possible (I think it might be).

  • Status changed to Closed: works as designed 4 months ago
  • 🇩🇪Germany Hydra

    So for now I would say it works as designed :)

Production build 0.71.5 2024