-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
{{ parent() }} in root/templates/components/dashboard/navbar.html.twig breaks UI #641
Comments
The root message should actually be hidden on small width devices. |
Don't see any code that would impose that. Nevertheless, the current twig structure breaks the UI the same. Proposed fix in
Proposed fix in
However, the hierarchy does not seem natural because the |
It's not hidden currently, but it should be as a different locale could display a longer string that would be wrapped on two or more line anyway (for example French: Can you submit a pull request with the proposed changes? |
Done! |
There we go. Tested on different screen size using Safari Responsive Design Mode ;) |
I understand, but that isn't that a corner case? Other solutions would be a
shorter translation, or the use of the twig slice filter to cap longer
strings.
|
Other situation will require a more sophisticated fix, I agree, but as far as the root message goes, I guess it's enough. That string shouldn't be seen by many users (well, one actually). For the best user experience on a mobile size, icons should be used anyway |
This is noticeable in smaller screens, e.g., smartphone (used chromium developer tools).
The mentioned file creates a new navbar in the DOM and it does not allow to access the sidemenu options, because it overlaps the toggle buttom previously set in the parent twigs.
Suggested fix is to add a new empty block to @admin/components/dashboard/navbar.html.twig to be extended by root/templates/components/dashboard/navbar.html.twig.
This twig only adds a "LOGIN WITH ROOT ACCOUNT" to the navbar.
The text was updated successfully, but these errors were encountered: